Add MAP_NORESERVE support.

Add MAP_NORESERVE to the chunk_mmap() case being used by
chunk_swap_enable(), if the system supports it.
This commit is contained in:
Jordan DeLong
2010-05-10 14:17:00 -07:00
committed by Jason Evans
parent ecea0f6125
commit 2206e1acc1
3 changed files with 32 additions and 14 deletions

View File

@@ -10,6 +10,7 @@
#ifdef JEMALLOC_H_EXTERNS
void *chunk_alloc_mmap(size_t size);
void *chunk_alloc_mmap_noreserve(size_t size);
void chunk_dealloc_mmap(void *chunk, size_t size);
#endif /* JEMALLOC_H_EXTERNS */