diff options
author | Qi Wang <interwq@gwu.edu> | 2019-03-28 04:47:20 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-03-29 18:33:00 (GMT) |
commit | 788a657cee745c1f827ddf1db50d580bd5e4347b (patch) | |
tree | 58b98960f3b15809f2960d6f853c58f09397669f | |
parent | a4d017f5e5aea12b745e67679ba40753f6d7a778 (diff) | |
download | jemalloc-788a657cee745c1f827ddf1db50d580bd5e4347b.zip jemalloc-788a657cee745c1f827ddf1db50d580bd5e4347b.tar.gz jemalloc-788a657cee745c1f827ddf1db50d580bd5e4347b.tar.bz2 |
Allow low values of oversize_threshold to disable the feature.
We should allow a way to easily disable the feature (e.g. not reserving the
arena id at all).
-rw-r--r-- | src/jemalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index 855a98b..bb70395 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1248,8 +1248,8 @@ malloc_conf_init(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS]) { * contention on the huge arena. */ CONF_HANDLE_SIZE_T(opt_oversize_threshold, - "oversize_threshold", SC_LARGE_MINCLASS, - SC_LARGE_MAXCLASS, yes, yes, false) + "oversize_threshold", 0, SC_LARGE_MAXCLASS, no, yes, + false) CONF_HANDLE_SIZE_T(opt_lg_extent_max_active_fit, "lg_extent_max_active_fit", 0, (sizeof(size_t) << 3), yes, yes, false) |