Prism Ruby parser
Loading...
Searching...
No Matches
Data Fields
pm_arena_t Struct Reference

A bump allocator. More...

#include <pm_arena.h>

Collaboration diagram for pm_arena_t:
Collaboration graph
[legend]

Data Fields

pm_arena_block_tcurrent
 The active block (allocate from here).
 
size_t block_count
 The number of blocks allocated.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: