|
Prism Ruby parser
|
A bump allocator. More...
#include <pm_arena.h>

Data Fields | |
| pm_arena_block_t * | current |
| The active block (allocate from here). | |
| size_t | block_count |
| The number of blocks allocated. | |
A bump allocator.
Allocations are made by bumping a pointer within the current block. When a block is full, a new block is allocated and linked to the previous one. All blocks are freed at once by walking the chain.