Skip to main content

Module arena

Module arena 

Source
Expand description

Generational arena allocator.

Provides O(1) alloc/dealloc with use-after-free detection via generation counters. All memory is pre-allocated at startup — zero heap activity in the RT thread.

Structs§

Arena
Fixed-capacity generational arena.
NodeId
A typed, generational index into the arena. The generation field prevents ABA problems and dangling references.

Functions§

default_node_arena
Default arena sized for the project’s node limit.