mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-14 17:06:22 +03:00
Allow setting default ncached_max for each bin through malloc_conf
This commit is contained in:
parent
867eedfc58
commit
8a22d10b83
6 changed files with 321 additions and 241 deletions
|
|
@ -1322,6 +1322,18 @@ malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
|
|||
} while (vlen_left > 0);
|
||||
CONF_CONTINUE;
|
||||
}
|
||||
if (CONF_MATCH("tcache_ncached_max")) {
|
||||
bool err = tcache_bin_info_settings_parse(
|
||||
v, vlen, opt_tcache_ncached_max,
|
||||
opt_tcache_ncached_max_set);
|
||||
if (err) {
|
||||
CONF_ERROR("Invalid settings for "
|
||||
"tcache_ncached_max", k, klen, v,
|
||||
vlen);
|
||||
break;
|
||||
}
|
||||
CONF_CONTINUE;
|
||||
}
|
||||
CONF_HANDLE_INT64_T(opt_mutex_max_spin,
|
||||
"mutex_max_spin", -1, INT64_MAX, CONF_CHECK_MIN,
|
||||
CONF_DONT_CHECK_MAX, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue