Snap for 5716220 from 358c8c9572 to qt-c2f2-release

Change-Id: Ic12d1bd51d7b2e6540111956676f7f34cddb025d
This commit is contained in:
android-build-team Robot 2019-07-10 03:08:47 +00:00
commit 1b353a7b27

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);