mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 16:47:21 +03:00
Make the default option of zero realloc match the system allocator.
This commit is contained in:
parent
66c889500a
commit
8cb814629a
4 changed files with 26 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue