benilla-re systems structs docs

s_contextBaseVtable

global · core

Address
0x80136c · 4 bytes, up to 0x80136f
Type
void *[1]
Meaning
Holds the vtable of a context under construction: the deleting destructor 0x4229e0
Confidence
verified, proof one
Finding
core/scheduler#context-vtables

Finding: Context vtables in core: scheduler

Five single-slot vtables lie in a row from 0x801364: the context's deleting destructor 0x423240, the heap-node comparator 0x422970, then 0x4229e0, 0x422a50 and 0x40a2d7. The constructor stores 0x80136c at +0x00 and 0x801364 once built; the destructor stores 0x801364 and ends with 0x801370. 0x4229e0 and 0x422a50 are the deleting destructors of the two base layers and differ only in the free call's displacement: each stores 0x801370, unlinks the link at +4, frees this when bit 0 of the argument is set and returns it. 0x40a2d7 ends the process with runtime error 25, a pure virtual call.

The derivation is in the doc.