template <uptr StaticBufferCount, uptr StaticBufferNumElements>

class BufferPool

Defined at line 112 of file ../../third_party/scudo/src/release.h

A buffer pool which holds a fixed number of static buffers of `uptr` elements

for fast buffer allocation. If the request size is greater than

`StaticBufferNumElements` or if all the static buffers are in use, it'll

delegate the allocation to map().

Public Methods

bool getBuffer (Buffer & Buf, const uptr NumElements)

Buf must be an empty buffer that will be filled in to contain a zero

initialized buffer which can contain the given number of elements.

On failure, Buf.data is guaranteed to be nullptr, and returns false.

Defined at line 137 of file ../../third_party/scudo/src/release.h

void releaseBuffer (Buffer & Buf)

Defined at line 163 of file ../../third_party/scudo/src/release.h

bool isStaticBufferTestOnly (const Buffer & Buf)

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

Records