template <typename Callback, typename Node, bool QuarantineDisabled = false>
class GlobalQuarantine
Defined at line 193 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 198 of file ../../third_party/scudo/src/quarantine.h
uptr getMaxSize ()
Defined at line 214 of file ../../third_party/scudo/src/quarantine.h
uptr getCacheSize ()
Defined at line 215 of file ../../third_party/scudo/src/quarantine.h
bool isEmpty ()
This is supposed to be used in test only.
Defined at line 218 of file ../../third_party/scudo/src/quarantine.h
void put (CacheT *C,CallbackCb,Node *Ptr,uptrSize)
Defined at line 223 of file ../../third_party/scudo/src/quarantine.h
void drain (CacheT * C, Callback Cb)
Defined at line 229 of file ../../third_party/scudo/src/quarantine.h
void drainAndRecycle (CacheT * C, Callback Cb)
Defined at line 241 of file ../../third_party/scudo/src/quarantine.h
void getStats (ScopedString * Str)
Defined at line 250 of file ../../third_party/scudo/src/quarantine.h
void disable ()
Defined at line 258 of file ../../third_party/scudo/src/quarantine.h
void enable ()
Defined at line 264 of file ../../third_party/scudo/src/quarantine.h