VirtualBox

Changeset 31800 in vbox


Ignore:
Timestamp:
Aug 19, 2010 6:15:07 PM (14 years ago)
Author:
vboxsync
Message:

PGMRZDynMap.cpp: Disabled totally bogus code that would flush the current subset when running low on mapping entries. More assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp

    r31775 r31800  
    19491949    uint32_t cEntries = pSet->cEntries;
    19501950    AssertReturnVoid(cEntries != PGMMAPSET_CLOSED);
     1951    Assert(pSet->iSubset == UINT32_MAX);
    19511952#ifdef IN_RC
    19521953    if (RT_ELEMENTS(pSet->aEntries) > MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE)
     
    20972098    STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->StatRZDynMapSubsets);
    20982099
     2100    AssertMsg(iPrevSubset <= pSet->iSubset || iPrevSubset == UINT32_MAX, ("iPrevSubset=%#x iSubset=%#x\n", iPrevSubset, pSet->iSubset));
    20992101    return iPrevSubset;
    21002102}
     
    21132115    LogFlow(("PGMRZDynMapPopAutoSubset: pVCpu=%p iPrevSubset=%u iSubset=%u cEntries=%u\n", pVCpu, iPrevSubset, pSet->iSubset, cEntries));
    21142116    AssertReturnVoid(cEntries != PGMMAPSET_CLOSED);
    2115     AssertReturnVoid(pSet->iSubset >= iPrevSubset || iPrevSubset == UINT32_MAX);
     2117    AssertMsgReturnVoid(pSet->iSubset >= iPrevSubset || iPrevSubset == UINT32_MAX, ("iPrevSubset=%u iSubset=%u cEntries=%u\n", iPrevSubset, pSet->iSubset, cEntries));
    21162118#ifdef IN_RC
    21172119    if (RT_ELEMENTS(pSet->aEntries) > MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE)
     
    21252127        AssertMsg(cEntries < PGMMAPSET_MAX_FILL, ("%u\n", cEntries));
    21262128        pgmDynMapFlushSubset(pSet);
     2129        Assert(pSet->cEntries >= iPrevSubset || iPrevSubset == UINT32_MAX);
    21272130    }
    21282131    pSet->iSubset = iPrevSubset;
     
    23722375        {
    23732376            STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->StatRZDynMapSetSearchMisses);
     2377#if 0 /* this is very bogus */
    23742378            if (pSet->iSubset < pSet->cEntries)
    23752379            {
     
    23792383                pgmDynMapFlushSubset(pSet);
    23802384            }
     2385#endif
    23812386
    23822387            if (RT_UNLIKELY(pSet->cEntries >= RT_ELEMENTS(pSet->aEntries)))
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