VirtualBox

Changeset 38080 in vbox


Ignore:
Timestamp:
Jul 20, 2011 1:02:03 PM (13 years ago)
Author:
vboxsync
Message:

PGMR3PhysAllocateHandyPages: more details in debug builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r37942 r38080  
    42484248        VM_FF_CLEAR(pVM, VM_FF_PGM_NO_MEMORY);
    42494249
     4250#ifdef VBOX_STRICT
     4251        bool fOk = true;
     4252        uint32_t i;
     4253        for (i = iClear; i < pVM->pgm.s.cHandyPages; i++)
     4254            if (   pVM->pgm.s.aHandyPages[i].idPage == NIL_GMM_PAGEID
     4255                || pVM->pgm.s.aHandyPages[i].idSharedPage != NIL_GMM_PAGEID
     4256                || (pVM->pgm.s.aHandyPages[i].HCPhysGCPhys & PAGE_OFFSET_MASK))
     4257                break;
     4258        if (i != pVM->pgm.s.cHandyPages)
     4259        {
     4260            RTAssertMsg1Weak(NULL, __LINE__, __FILE__, __FUNCTION__);
     4261            RTAssertMsg2Weak("i=%d iClear=%d cHandyPages=%d\n", i, iClear, pVM->pgm.s.cHandyPages);
     4262            for (uint32_t j = iClear; j < pVM->pgm.s.cHandyPages; j++)
     4263                RTAssertMsg2Add(("%03d: idPage=%d HCPhysGCPhys=%RHp idSharedPage=%d%\n", j,
     4264                                 pVM->pgm.s.aHandyPages[j].idPage,
     4265                                 pVM->pgm.s.aHandyPages[j].HCPhysGCPhys,
     4266                                 pVM->pgm.s.aHandyPages[j].idSharedPage,
     4267                                 j == i ? " <---" : ""));
     4268            RTAssertPanic();
     4269        }
     4270#endif
    42504271        /*
    42514272         * Clear the pages.
Note: See TracChangeset for help on using the changeset viewer.

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