template <uptr StaticBufferCount, uptr StaticBufferNumElements>
class BufferPool
Defined at line 111 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
Buffer getBuffer (const uptr NumElements)
Return a zero-initialized buffer which can contain at least the given
number of elements, or nullptr on failure.
Defined at line 135 of file ../../third_party/scudo/src/release.h
void releaseBuffer (Buffer Buf)
Defined at line 161 of file ../../third_party/scudo/src/release.h
bool isStaticBufferTestOnly (const Buffer & Buf)
Defined at line 173 of file ../../third_party/scudo/src/release.h