Expand description
Bump pointer allocator
Structsยง
- A bump pointer allocator. It keeps a thread local allocation buffer, and bumps a cursor to allocate from the buffer.
- A common fast-path bump-pointer allocator shared across different allocator implementations that use bump-pointer allocation. A
BumpPointer
is always initialized with cursor = 0, limit = 0, so the first allocation always fails the check ofcursor + size < limit
and goes to the slowpath. A binding can also take advantage of this design to zero-initialize the a bump pointer.
Constantsยง
- BLOCK_
MASK ๐ - BLOCK_
SIZE ๐ - BYTES_
IN_ ๐PAGE