Add a runtime option opt_experimental_tcache_gc to guard the new design

This commit is contained in:
Shirui Cheng 2024-08-12 16:15:46 -07:00 committed by Qi Wang
parent 9e123a833c
commit f68effe4ac
4 changed files with 9 additions and 0 deletions

View file

@ -151,6 +151,7 @@ void (*JET_MUTABLE invalid_conf_abort)(void) = &abort;
bool opt_utrace = false;
bool opt_xmalloc = false;
bool opt_experimental_infallible_new = false;
bool opt_experimental_tcache_gc = false;
bool opt_zero = false;
unsigned opt_narenas = 0;
static fxp_t opt_narenas_ratio = FXP_INIT_INT(4);
@ -1414,6 +1415,8 @@ malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
"experimental_infallible_new")
}
CONF_HANDLE_BOOL(opt_experimental_tcache_gc,
"experimental_tcache_gc")
CONF_HANDLE_BOOL(opt_tcache, "tcache")
CONF_HANDLE_SIZE_T(opt_tcache_max, "tcache_max",
0, TCACHE_MAXCLASS_LIMIT, CONF_DONT_CHECK_MIN,