Lines Matching defs:mmap
45 #include <sys/mman.h> // for munmap, mmap, MADV_DONTNEED, etc
118 // Page size is initialized on demand (only needed for mmap-based allocators)
139 "Whether mmap can be used to obtain memory.");
273 // Check if we should use mmap allocation.
278 // sbrk is used until the heap is exhausted (before mmap is used).
308 void* result = mmap(NULL, size + extra,
398 void *result = mmap(0, size + extra, PROT_WRITE|PROT_READ,
447 MmapSysAllocator *mmap = new (mmap_space) MmapSysAllocator();
450 // In 64-bit debug mode, place the mmap allocator first since it
459 sdef->SetChildAllocator(mmap, 0, mmap_name);
463 sdef->SetChildAllocator(mmap, 1, mmap_name);