template <typename Config, void (*unmapCallBack)(MemMapT &) = unmap>

class MapAllocatorCache

Defined at line 223 of file ../../third_party/scudo/src/secondary.h

The default unmap callback is simply scudo::unmap.

In testing, a different unmap callback is used to

record information about unmaps in the cache

Public Methods

void getStats (ScopedString * Str)

Defined at line 225 of file ../../third_party/scudo/src/secondary.h

void init (s32 ReleaseToOsInterval)

Defined at line 274 of file ../../third_party/scudo/src/secondary.h

void store (const Options & Options, uptr CommitBase, uptr CommitSize, uptr BlockBegin, MemMapT MemMap)

Defined at line 297 of file ../../third_party/scudo/src/secondary.h

bool canCache (uptr Size)

Defined at line 510 of file ../../third_party/scudo/src/secondary.h

bool setOption (Option O, sptr Value)

Defined at line 515 of file ../../third_party/scudo/src/secondary.h

void releaseToOS (ReleaseToOS ReleaseType)

Defined at line 555 of file ../../third_party/scudo/src/secondary.h

void disableMemoryTagging ()

Defined at line 573 of file ../../third_party/scudo/src/secondary.h

void disable ()

Defined at line 588 of file ../../third_party/scudo/src/secondary.h

void enable ()

Defined at line 590 of file ../../third_party/scudo/src/secondary.h

uptr getMaxResidentBytesTestOnly ()

Defined at line 592 of file ../../third_party/scudo/src/secondary.h

uptr getCurrentResidentBytesTestOnly ()

Defined at line 597 of file ../../third_party/scudo/src/secondary.h

void unmapTestOnly ()

Defined at line 602 of file ../../third_party/scudo/src/secondary.h

void releaseOlderThanTestOnly (u64 ReleaseTime)

Defined at line 604 of file ../../third_party/scudo/src/secondary.h