template <typename Callback, typename Node>

class GlobalQuarantine

Defined at line 171 of file ../../third_party/scudo/src/quarantine.h

The callback interface is:

void Callback::recycle(Node *Ptr);

void *Callback::allocate(uptr Size);

void Callback::deallocate(void *Ptr);

Public Methods

void init (uptr Size, uptr CacheSize)

Defined at line 176 of file ../../third_party/scudo/src/quarantine.h

uptr getMaxSize ()

Defined at line 192 of file ../../third_party/scudo/src/quarantine.h

uptr getCacheSize ()

Defined at line 193 of file ../../third_party/scudo/src/quarantine.h

bool isEmpty ()

This is supposed to be used in test only.

Defined at line 196 of file ../../third_party/scudo/src/quarantine.h

void put (CacheT * C, Callback Cb, Node * Ptr, uptr Size)

Defined at line 201 of file ../../third_party/scudo/src/quarantine.h

void drain (CacheT * C, Callback Cb)

Defined at line 207 of file ../../third_party/scudo/src/quarantine.h

void drainAndRecycle (CacheT * C, Callback Cb)

Defined at line 219 of file ../../third_party/scudo/src/quarantine.h

void getStats (ScopedString * Str)

Defined at line 228 of file ../../third_party/scudo/src/quarantine.h

void disable ()

Defined at line 236 of file ../../third_party/scudo/src/quarantine.h

void enable ()

Defined at line 242 of file ../../third_party/scudo/src/quarantine.h