mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-17 18:36:21 +03:00
Disable tcache by default if running inside Valgrind.
Disable tcache by default if running inside Valgrind, in order to avoid making unallocated objects appear reachable to Valgrind.
This commit is contained in:
parent
781fe75e0a
commit
174b70efb4
3 changed files with 8 additions and 1 deletions
|
|
@ -389,6 +389,8 @@ malloc_conf_init(void)
|
|||
opt_quarantine = JEMALLOC_VALGRIND_QUARANTINE_DEFAULT;
|
||||
opt_redzone = true;
|
||||
}
|
||||
if (config_tcache && opt_valgrind)
|
||||
opt_tcache = false;
|
||||
}
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue