diff options
author | Jason Evans <jasone@canonware.com> | 2017-04-25 00:28:55 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-04-25 03:37:16 (GMT) |
commit | c67c3e4a63277718b9d137a38663c6ae324c99aa (patch) | |
tree | 18d2f1f3a5eaaa0b5549c64691e6ed16c3c9f47c /test/unit/mallctl.c | |
parent | e2cc6280ed96e2e6a2754d4e7187296e377d9548 (diff) | |
download | jemalloc-c67c3e4a63277718b9d137a38663c6ae324c99aa.zip jemalloc-c67c3e4a63277718b9d137a38663c6ae324c99aa.tar.gz jemalloc-c67c3e4a63277718b9d137a38663c6ae324c99aa.tar.bz2 |
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 'test/unit/mallctl.c')
-rw-r--r-- | test/unit/mallctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c index 8afd25a..51a5244 100644 --- a/test/unit/mallctl.c +++ b/test/unit/mallctl.c @@ -131,7 +131,6 @@ TEST_BEGIN(test_mallctl_config) { TEST_MALLCTL_CONFIG(fill, bool); TEST_MALLCTL_CONFIG(lazy_lock, bool); TEST_MALLCTL_CONFIG(malloc_conf, const char *); - TEST_MALLCTL_CONFIG(munmap, bool); TEST_MALLCTL_CONFIG(prof, bool); TEST_MALLCTL_CONFIG(prof_libgcc, bool); TEST_MALLCTL_CONFIG(prof_libunwind, bool); @@ -158,6 +157,7 @@ TEST_BEGIN(test_mallctl_opt) { } while (0) TEST_MALLCTL_OPT(bool, abort, always); + TEST_MALLCTL_OPT(bool, munmap, always); TEST_MALLCTL_OPT(const char *, dss, always); TEST_MALLCTL_OPT(unsigned, narenas, always); TEST_MALLCTL_OPT(const char *, percpu_arena, always); |