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).
This commit is contained in:
parent
a4d017f5e5
commit
788a657cee
@ -1248,8 +1248,8 @@ malloc_conf_init(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS]) {
|
|||||||
* contention on the huge arena.
|
* contention on the huge arena.
|
||||||
*/
|
*/
|
||||||
CONF_HANDLE_SIZE_T(opt_oversize_threshold,
|
CONF_HANDLE_SIZE_T(opt_oversize_threshold,
|
||||||
"oversize_threshold", SC_LARGE_MINCLASS,
|
"oversize_threshold", 0, SC_LARGE_MAXCLASS, no, yes,
|
||||||
SC_LARGE_MAXCLASS, yes, yes, false)
|
false)
|
||||||
CONF_HANDLE_SIZE_T(opt_lg_extent_max_active_fit,
|
CONF_HANDLE_SIZE_T(opt_lg_extent_max_active_fit,
|
||||||
"lg_extent_max_active_fit", 0,
|
"lg_extent_max_active_fit", 0,
|
||||||
(sizeof(size_t) << 3), yes, yes, false)
|
(sizeof(size_t) << 3), yes, yes, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user