stdx.allocator.mmap_allocator
-
Declaration
structMmapAllocator;Allocator (currently defined only for Posix and Windows) using and directly (or their Windows equivalents). There is no additional structure: each call to issues a call to , and each call to issues . So is usually intended for allocating large chunks to be managed by fine-granular allocators.
-
Declaration
static shared MmapAllocatorinstance;The one shared
instance. -
Declaration
enum size_talignment;Alignment is page-size and hardcoded to 4096 (even though on certain systems it could be larger).
-
Declaration
shared void[]allocate(size_tbytes);
shared booldeallocate(void[]b);Allocator API.
-