mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
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.
This commit is contained in:
parent
e2cc6280ed
commit
c67c3e4a63
16 changed files with 77 additions and 85 deletions
|
|
@ -707,7 +707,6 @@ stats_general_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
|||
"config.malloc_conf: \"%s\"\n", config_malloc_conf);
|
||||
}
|
||||
|
||||
CONFIG_WRITE_BOOL_JSON(munmap, ",")
|
||||
CONFIG_WRITE_BOOL_JSON(prof, ",")
|
||||
CONFIG_WRITE_BOOL_JSON(prof_libgcc, ",")
|
||||
CONFIG_WRITE_BOOL_JSON(prof_libunwind, ",")
|
||||
|
|
@ -801,6 +800,7 @@ stats_general_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
|||
"Run-time option settings:\n");
|
||||
}
|
||||
OPT_WRITE_BOOL(abort, ",")
|
||||
OPT_WRITE_BOOL(munmap, ",")
|
||||
OPT_WRITE_CHAR_P(dss, ",")
|
||||
OPT_WRITE_UNSIGNED(narenas, ",")
|
||||
OPT_WRITE_CHAR_P(percpu_arena, ",")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue