s_contextHandlesWrapped
global · core
- Address
0xcf76fc· 4 bytes, up to0xcf76ff- Type
uint32_t- Meaning
- Holds 1 once the context handle counter has wrapped to 0
- Confidence
- verified, proof one
- Finding
- core/scheduler#context-insert
Finding: Context insert in core: scheduler
0x4222a0 places a new context. It picks the slot with the lowest cost sum (the first on a tie),
gives a context without a handle the next value of 0xcf76f8 (0 is skipped, and after a wrap any
value still in the table), files it at the end of bucket handle & 7, sets its due time to the
clock, inserts it in the slot's heap, sets the slot's event, and adds the cost +0x50 to the
slot's sum and 1 to its count With no slot it destroys the context through its virtual destructor
and returns 0.
The derivation is in the doc.