Changeset 37805 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jul 6, 2011 3:00:19 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72684
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r37804 r37805 2543 2543 else 2544 2544 AssertMsgFailed(("idPage=%#x\n", idPage)); 2545 2545 2546 paPages[iPage].idPage = NIL_GMM_PAGEID; 2546 2547 paPages[iPage].idSharedPage = NIL_GMM_PAGEID; … … 2729 2730 if (RT_SUCCESS(rc)) 2730 2731 { 2731 #if 0 /* This appears to spell trouble... weird. */2732 #if defined(VBOX_STRICT) && 0 /** @todo re-test this later. Appeared to be a PGM init bug. */ 2732 2733 for (iPage = 0; iPage < cPagesToAlloc; iPage++) 2733 2734 { … … 2742 2743 * Note! gmmR0AllocateMoreChunks may leave the protection of the mutex! 2743 2744 */ 2744 #if 0 /* Trying to reproduce out of memory issue... */ 2745 if (!cPagesToUpdate) 2746 #endif 2747 rc = gmmR0AllocatePagesNew(pGMM, pGVM, cPagesToAlloc, paPages, GMMACCOUNT_BASE); 2748 #if 0 /* Trying to reproduce out of memory issue... */ 2749 else 2750 { 2751 for (iPage = 0; iPage < cPagesToAlloc; iPage++) 2752 { 2753 paPages[iPage].HCPhysGCPhys = NIL_RTHCPHYS; 2754 paPages[iPage].idPage = NIL_GMM_PAGEID; 2755 paPages[iPage].idSharedPage = NIL_GMM_PAGEID; 2756 } 2757 2758 rc = VERR_GMM_HIT_VM_ACCOUNT_LIMIT; 2759 } 2760 #endif 2745 rc = gmmR0AllocatePagesNew(pGMM, pGVM, cPagesToAlloc, paPages, GMMACCOUNT_BASE); 2761 2746 } 2762 2747 }
Note:
See TracChangeset
for help on using the changeset viewer.