Expand description
Platform-specific memory allocation functions.
Functionsยง
- alloc
- Allocate
sizebytes of virtual memory from the OS. - alloc_
huge - Allocate memory with huge pages (Linux only).
- alloc_
with_ guards - Allocate memory with guard pages at both ends.
- dealloc
- Deallocate memory previously allocated with
alloc. - dealloc_
guarded - Deallocate a guarded allocation.
- mlock
- Lock memory to prevent swapping (for sensitive data).
- munlock
- Unlock previously locked memory.