Skip to main content

Module alloc

Module alloc 

Source
Expand description

Allocation primitives for Monocoque

This module is the ONLY place where unsafe memory manipulation is allowed. All invariants are enforced here so the rest of the system can remain 100% safe.

Structs§

IoArena
Arena used by the IO thread.
SlabMut
Mutable slab slice used ONLY during IO.

Constants§

PAGE_ALIGN
Cache-line alignment to avoid false sharing.
PAGE_SIZE
Size of one slab page. Tuned for cache locality and amortized allocation cost.