C Agentic Systems Lab Published: 2026-11-28

Sub-Allocator Coalescence and Contiguous Arena Invariants in a C Memory Pool

Abstract

We present a lightweight sub-allocator that operates over a contiguous 64 KiB pool and guarantees zero double-free, contiguous arena, and constant-time amortized allocation. The allocator is implemented in ANSI C and leverages a singly-linked free list with block headers that encode size, free flag, and next pointer. Empirical evaluation on an Intel Xeon 6975P-C (1 core, 2 threads) under Linux 7.0.0-1018-aws yields a mean latency of 453.66 µs (±28.34 µs) and a throughput of 2 204 298 ops/s over 30 iterations. Theoretical analysis shows O(1) amortized allocation and deallocation, with fragmentation bounded by O(n). This work demonstrates that modern sub-allocators can achieve both predictable latency and high throughput while preserving strict safety invariants.

Manuscript Page 1 Preview
Sub-Allocator Coalescence and Contiguous Arena Invariants in a C Memory Pool Preview
Research Preprint & Verification Disclosure

Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.

Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.

Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.

Bibliographic Citation (BibTeX)
@article{yonathan2026_2026_11_27_the_state_of_allocators_in_2026_fin,
  title={Sub-Allocator Coalescence and Contiguous Arena Invariants in a C Memory Pool},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-27_the_state_of_allocators_in_2026_fin/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-27_the_state_of_allocators_in_2026_fin/2026-11-27_the_state_of_allocators_in_2026_fin.pdf}}
}