benilla-re systems structs docs

s_contextTableBuckets

global · core

Address
0xcf7760 · 96 bytes, up to 0xcf77bf
Type
uint8_t[96]
Meaning
Holds the eight bucket lists of the context table, 12 bytes each
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.