class Quarantine

Defined at line 105 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/asan.h

Public Members

static const size_t kQuarantineElements

Public Methods

void * push (void * allocation)

Push |allocation| that was going to be freed into a 'quarantine', increasing reuse distance.

Returns nullptr if the quarantine is not full or the oldest pushed allocation if it is full.

If this returns an allocation, it is the responsibility of the caller to free it.