Do not check tcache clear when doing a purge.

am: 5cda74e065

Change-Id: I6fdf747408e96c1f99c4544e94a97835c8588d19
This commit is contained in:
Christopher Ferris 2019-07-09 11:38:34 -07:00 committed by android-build-merger
commit 358c8c9572

View file

@ -107,9 +107,8 @@ int je_mallopt(int param, int value) {
// clear the caches of other threads.
// This must be done first so that cleared allocations get purged
// in the next calls.
if (je_mallctl("thread.tcache.flush", nullptr, nullptr, nullptr, 0) != 0) {
return 0;
}
// Ignore the return call since this will fail if the tcache is disabled.
je_mallctl("thread.tcache.flush", nullptr, nullptr, nullptr, 0);
unsigned narenas;
size_t sz = sizeof(unsigned);