VirtualBox

Changeset 37805 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 6, 2011 3:00:19 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72684
Message:

GMMR0: cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r37804 r37805  
    25432543            else
    25442544                AssertMsgFailed(("idPage=%#x\n", idPage));
     2545
    25452546            paPages[iPage].idPage       = NIL_GMM_PAGEID;
    25462547            paPages[iPage].idSharedPage = NIL_GMM_PAGEID;
     
    27292730            if (RT_SUCCESS(rc))
    27302731            {
    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. */
    27322733                for (iPage = 0; iPage < cPagesToAlloc; iPage++)
    27332734                {
     
    27422743                 * Note! gmmR0AllocateMoreChunks may leave the protection of the mutex!
    27432744                 */
    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);
    27612746            }
    27622747        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette