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:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user