Expand description
Platform-specific memory allocation interface.
This module provides an abstraction over the operating system’s virtual memory allocation APIs:
- Linux:
mmapviarustixwith huge pages and guard pages support - macOS:
mach_vm_allocateviamach2 - Windows:
VirtualAllocvia direct FFI - Other Unix:
mmapvialibc
Modules§
- sys
- Platform-specific memory allocation functions.
Structs§
- Alloc
Failed - Error type for system memory allocation failures.
- Guarded
Alloc - Result of a guarded allocation.
Enums§
- Alloc
Error Kind - Classification of allocation errors.
- Huge
Page Size - Huge page size options (Linux only).