VirtualBox

Changeset 18218 in vbox for trunk/src


Ignore:
Timestamp:
Mar 24, 2009 7:15:55 PM (16 years ago)
Author:
vboxsync
Message:

gmmR0LinkChunk: set pFreePrev; gmmR0FreeChunk: don't use pCore, always use pChunk.

File:
1 edited

Legend:

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

    r18212 r18218  
    13191319        unsigned iList = (pChunk->cFree - 1) >> GMM_CHUNK_FREE_SET_SHIFT;
    13201320        pChunk->pFreeNext = pSet->apLists[iList];
     1321        if (pChunk->pFreeNext)
     1322            pChunk->pFreeNext->pFreePrev = pChunk;
    13211323        pSet->apLists[iList] = pChunk;
    13221324
     
    19992001static void gmmR0FreeChunk(PGMM pGMM, PGMMCHUNK pChunk)
    20002002{
     2003    Assert(pChunk->Core.Key != NIL_GMM_CHUNKID);
     2004
    20012005    /*
    20022006     * If there are current mappings of the chunk, then request the
     
    20272031            Assert(pCore == &pChunk->Core); NOREF(pCore);
    20282032
    2029             PGMMCHUNKTLBE pTlbe = &pGMM->ChunkTLB.aEntries[GMM_CHUNKTLB_IDX(pCore->Key)];
     2033            PGMMCHUNKTLBE pTlbe = &pGMM->ChunkTLB.aEntries[GMM_CHUNKTLB_IDX(pChunk->Key)];
    20302034            if (pTlbe->pChunk == pChunk)
    20312035            {
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