Module mem

Module mem 

Source
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§

BITS_PER_PTR

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.