|
Ruby 4.1.0dev (2026-03-07 revision 55694ad7efc3f8dc6d5c7aefa60ded4c303ed6cf)
|
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.
Definition at line 39 of file pm_arena.h.
| size_t pm_arena_t::block_count |
The number of blocks allocated.
Definition at line 44 of file pm_arena.h.
Referenced by pm_arena_alloc().
| pm_arena_block_t* pm_arena_t::current |
The active block (allocate from here).
Definition at line 41 of file pm_arena.h.
Referenced by pm_arena_alloc(), and pm_arena_free().