VirtualBox

Ignore:
Timestamp:
Dec 30, 2022 9:15:10 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155011
Message:

Add/VBoxGuestR0LibPhysHeap.cpp: Count both kind of blocks both on heap and chunk level. This is in preparation for a workaround for VbglR0PhysHeapFree not merging with the block before the one that getting freed. Completed the vbglR0PhysHeapCheckLocked code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/testcase/tstVbglR0PhysHeap-1.cpp

    r97913 r97921  
    345345                s_aHistory[i].pv = NULL;
    346346            }
     347            RTTestIPrintf(RTTESTLVL_ALWAYS, "after free-all: cFreeBlocks=%u in %u chunk(s)\n", g_vbgldata.acBlocks[0], g_cChunks);
    347348            RTTESTI_CHECK_MSG(g_cChunks == 1, ("g_cChunks=%d\n", g_cChunks));
     349            RTTESTI_CHECK_MSG(g_vbgldata.acBlocks[1] == 0, ("g_vbgldata.acBlocks[1]=%d\n", g_vbgldata.acBlocks[0]));
    348350#if 0
    349351            for (VBGLPHYSHEAPCHUNK *pCurChunk = g_vbgldata.pChunkHead; pCurChunk; pCurChunk = pCurChunk->pNext)
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