Make the default option of zero realloc match the system allocator.

This commit is contained in:
Qi Wang
2022-05-03 15:41:43 -07:00
committed by Qi Wang
parent 66c889500a
commit 8cb814629a
4 changed files with 26 additions and 8 deletions

View File

@@ -112,7 +112,12 @@ bool opt_cache_oblivious =
;
zero_realloc_action_t opt_zero_realloc_action =
zero_realloc_action_alloc;
#ifdef JEMALLOC_ZERO_REALLOC_DEFAULT_FREE
zero_realloc_action_free
#else
zero_realloc_action_alloc
#endif
;
atomic_zu_t zero_realloc_count = ATOMIC_INIT(0);