Fix mid free routing and relax mid W_MAX
This commit is contained in:
@ -52,7 +52,9 @@ static void hak_pool_init_impl(void) {
|
||||
const char* e_tls = getenv("HAKMEM_POOL_TLS_FREE");
|
||||
g_pool.tls_free_enabled = (e_tls == NULL) ? 1 : (atoi(e_tls) != 0);
|
||||
const char* e_wrap = getenv("HAKMEM_WRAP_L2");
|
||||
g_wrap_l2_enabled = (e_wrap && atoi(e_wrap) != 0) ? 1 : 0;
|
||||
if (e_wrap) {
|
||||
g_wrap_l2_enabled = (atoi(e_wrap) != 0);
|
||||
}
|
||||
const char* e_minb = getenv("HAKMEM_POOL_MIN_BUNDLE");
|
||||
if (e_minb) { int v = atoi(e_minb); if (v >= 1 && v <= 8) g_pool_min_bundle = v; }
|
||||
const char* e_mix = getenv("HAKMEM_SHARD_MIX");
|
||||
|
||||
Reference in New Issue
Block a user