benilla-re systems structs docs

StormHeapDecommitTail

function · storm · boundary

Address
0x646170 · 79 bytes, up to 0x6461be
Signature
void __thiscall (void *this, void *header, uint32_t sizeClass, uint32_t size)
Meaning
Decommits the pages after a block's first page, up to the end of its old allocation, when the class is above 12
Confidence
verified, proof one
Finding
storm/heap#what-a-free-leaves

Finding: What a free leaves in storm: heap

A free writes the freed block's header, the headers of blocks it moves in the arrays, the arrays and the counters, and for a join of class-12-or-larger halves it decommits a page, and for a final class above 12 the pages from base + 0x1000 to the page-rounded end of base + size + 8; it writes no byte of the user region. The queued header keeps only the segment bits and the class. User bytes stay until a later allocation takes the block or a free block containing it, or a decommit takes their page. Splitting a class-5 block into two class-4 blocks writes the upper half's header over bytes 8 to 15 of its user region.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.