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:
Jason Evans
2012-05-15 23:31:53 -07:00
parent 781fe75e0a
commit 174b70efb4
3 changed files with 8 additions and 1 deletions

View File

@@ -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++) {