c67c3e4a63
Control use of munmap(2) via a run-time option rather than a compile-time option (with the same per platform default). The old behavior of --disable-munmap can be achieved with --with-malloc-conf=munmap:false. This partially resolves #580.
11 lines
328 B
C
11 lines
328 B
C
#ifndef JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H
|
|
#define JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H
|
|
|
|
extern bool opt_munmap;
|
|
|
|
void *extent_alloc_mmap(void *new_addr, size_t size, size_t alignment,
|
|
bool *zero, bool *commit);
|
|
bool extent_dalloc_mmap(void *addr, size_t size);
|
|
|
|
#endif /* JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H */
|