1 #define JEMALLOC_EXTENT_MMAP_C_
2 #include "jemalloc/internal/jemalloc_preamble.h"
3 #include "jemalloc/internal/jemalloc_internal_includes.h"
5 #include "jemalloc/internal/assert.h"
6 #include "jemalloc/internal/extent_mmap.h"
8 /******************************************************************************/
12 #ifdef JEMALLOC_RETAIN
19 /******************************************************************************/
22 extent_alloc_mmap(void *new_addr, size_t size, size_t alignment, bool *zero,
24 void *ret = pages_map(new_addr, size, ALIGNMENT_CEILING(alignment,
37 extent_dalloc_mmap(void *addr, size_t size) {
39 pages_unmap(addr, size);