我一直在研究高内存问题,最近在windbg中进行了大量堆分析,我很好奇"!heap -flt -s xxxx"命令中的不同列实际上意味着什么。
我看过What do the 'size' numbers mean in the windbg !heap output?,并查阅了我的《Windows Internals》书籍,但我仍然有很多问题。因此,以下是各个列和我的问题。
**HEAP_ENTRY** - What does this pointer really point to? How is it different than UserPtr?
**Size** - What does this size mean? How is it different than UserSize?
**Prev** - This just appears to be the negative offset to get to the previous heap entry. Still not sure exactly how it's used.
**Flags** - Is there any documentation on these flags?
**UserPtr** - What is the user pointer? In all cases I've seen it's always 8 bytes higher than the HEAP_ENTRY, but I don't really know what it points to.
**UserSize** - This appears to be the size of the actual allocation.
**state** - This just tells you what state of this heap entry is (free, busy, etc....)
Example:
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
0015eeb0 0044 0000 [07] 0015eeb8 00204 - (busy)