Ruby 4.1.0dev (2026-03-07 revision 55694ad7efc3f8dc6d5c7aefa60ded4c303ed6cf)
Data Fields
pm_arena_t Struct Reference

A bump allocator. More...

#include <pm_arena.h>

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.

Definition at line 39 of file pm_arena.h.

Field Documentation

◆ block_count

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().

◆ current

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().


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