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

class MapAllocatorCache

Defined at line 216 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 218 of file ../../third_party/scudo/src/secondary.h

void init (s32 ReleaseToOsInterval)

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

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

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

bool canCache (uptr Size)

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

bool setOption (Option O, sptr Value)

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

void releaseToOS (ReleaseToOS ReleaseType)

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

void disableMemoryTagging ()

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

void disable ()

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

void enable ()

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

void unmapTestOnly ()

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

void releaseOlderThanTestOnly (u64 ReleaseTime)

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