aboutsummaryrefslogtreecommitdiffstats
path: root/src/large.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-04-24 17:28:55 -0700
committerJason Evans <jasone@canonware.com>2017-04-24 20:37:16 -0700
commitc67c3e4a63277718b9d137a38663c6ae324c99aa (patch)
tree18d2f1f3a5eaaa0b5549c64691e6ed16c3c9f47c /src/large.c
parente2cc6280ed96e2e6a2754d4e7187296e377d9548 (diff)
downloadplatform_external_jemalloc_new-c67c3e4a63277718b9d137a38663c6ae324c99aa.tar.gz
platform_external_jemalloc_new-c67c3e4a63277718b9d137a38663c6ae324c99aa.tar.bz2
platform_external_jemalloc_new-c67c3e4a63277718b9d137a38663c6ae324c99aa.zip
Replace --disable-munmap with opt.munmap.
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.
Diffstat (limited to 'src/large.c')
-rw-r--r--src/large.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/large.c b/src/large.c
index 36e8be91..4d515fbb 100644
--- a/src/large.c
+++ b/src/large.c
@@ -93,7 +93,7 @@ large_dalloc_maybe_junk(void *ptr, size_t size) {
* Only bother junk filling if the extent isn't about to be
* unmapped.
*/
- if (!config_munmap || (have_dss && extent_in_dss(ptr))) {
+ if (!opt_munmap || (have_dss && extent_in_dss(ptr))) {
large_dalloc_junk(ptr, size);
}
}