Expand description
This module provides access to the global memory allocator.
Modules§
- alloc
- This module provides a simple allocator. One implementation is the BestFitAllocator, which uses the best fit strategy.
- pfa
- vmm
Constants§
Statics§
- GLOBAL_
ALLOCATOR 🔒 - The global memory allocator.
- __
stack_ 🔒 ⚠top
Functions§
- align_
up - Aligns a size to be a multiple of the u128 alignment.
- free⚠
- Free a memory block.
- init_
memory - Initialize the memory allocator.
- malloc
- Allocate a memory block. Normally Box
or SizedPool should be used instead of this function.