mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Tcache: Make size computation configurable.
This commit is contained in:
committed by
David Goldblatt
parent
97b7a9cf77
commit
634afc4124
@@ -1373,6 +1373,12 @@ malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
|
||||
CONF_HANDLE_BOOL(opt_tcache, "tcache")
|
||||
CONF_HANDLE_SSIZE_T(opt_lg_tcache_max, "lg_tcache_max",
|
||||
-1, (sizeof(size_t) << 3) - 1)
|
||||
/*
|
||||
* Anyone trying to set a value outside -16 to 16 is
|
||||
* deeply confused.
|
||||
*/
|
||||
CONF_HANDLE_SSIZE_T(opt_lg_tcache_nslots_mul,
|
||||
"lg_tcache_nslots_mul", -16, 16)
|
||||
|
||||
/*
|
||||
* The runtime option of oversize_threshold remains
|
||||
|
||||
Reference in New Issue
Block a user