StormHeapTakeBlock
function · storm · boundary
- Address
0x645910· 757 bytes, up to0x645c04- Signature
void * __thiscall (void *this, uint32_t sizeClass, uint32_t size, uint32_t commit)- Meaning
- Takes the lowest free block of a class, splitting the next class or reserving a segment when none is free
- Confidence
- verified, proof one
- Finding
- storm/heap#taking-a-block
Finding: Taking a block in storm: heap
For a class of 24 or less 0x645910 pops the lowest-addressed free block of the class, the root of its array. With
none free it asks for the next class and splits the result: the lower half is the block, and the upper half, whose two
header dwords are zeroed, gets its class and is queued as free. A class of 24 with none free reserves a new 16 MiB
segment. The arrays are binary heaps of header pointers ordered by address; an entry's index lives in its header.
The derivation is in the doc.
Callers 1
- StormHeapAlloc storm
Callees 7
- 0x645050 storm
- StormHeapArrayTop storm
- StormHeapArrayPush storm
- StormHeapArrayRemove storm
- StormHeapBuddy storm
- StormHeapCommit storm
- 0x646100 storm
Calls and jumps by a bare address, from tables/calls.tsv.