Bounded global allocator¶
Workspace infrastructure providing a static, pre-allocated, fixed-block
global allocator for taktora binaries that must give compile-time
guarantees on memory usage. The crate (taktora-bounded-alloc) is
independent of taktora-executor but composes naturally with it —
No heap allocation in dispatch (REQ_0060) (zero-alloc steady-state dispatch) is tested by a
counting allocator and enforced in deployed binaries by registering
this crate’s allocator as #[global_allocator].
Umbrella feature¶
A reusable |
Requirements¶
The allocator shall serve every allocation from a single
statically-sized arena whose total capacity is
|
When an allocation request cannot be satisfied — because
|
The allocator shall expose a |
The allocator shall expose public methods returning live counts:
total successful |
Concurrent |
Safety refinements¶
The bounded allocator implements safety obligations Bounded allocator hard caps (TSR_0001) and Per-integrity-level allocat... (TSR_0002) derived from the SEooC safety concept (see Technical Safety Concept — TSRs).
Bounded allocator hard caps (TSR_0001) (hard caps on per-allocation size and total live blocks) is implemented today by Bounded global allocator (FEAT_0040).
Per-integrity-level allocat... (TSR_0002) (partitioned per-integrity-level quota pools) is draft — requires extending the public API to take an integrity-level argument at the allocator-init macro. See Bounded allocator as spatia... (ADR_0051) for the architectural rationale.