Skip to main content

Module allocation

Module allocation 

Source
Expand description

Thread-local hot-path allocation counter. Parallel tests need no serial flag.

Structs§

HarnessLease
Harness lease handle. Not the product LeaseTable.
ReservationTracker
Bounded reservation tracker: conservation, ownership, generation, peak bytes.

Functions§

peek_alloc
Peek without reset. Tests on other threads do not observe this value.
record_alloc
Record one hot-path heap touch on the calling thread.
take_alloc
Take and reset this thread’s hot-path allocation count.