VirtualBox

儲存庫 vbox 的更動 18218


忽略:
時間撮記:
2009-3-24 下午07:15:55 (16 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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            {
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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