s_contextHandleLock
global · core
- Address
0xcf76e0· 24 bytes, up to0xcf76f7- Type
uint8_t[24]- Meaning
- Holds the critical section guarding the context handle counter
- 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.