diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-07-10 03:08:47 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-07-10 03:08:47 +0000 |
commit | 1b353a7b27d5d8446948149e4a505f097218702b (patch) | |
tree | 8d5b09118c1f98d50d1a0cd4329f4ceb922f9513 | |
parent | c1cf18ba82e2e26d34a313d8ddb27db507439322 (diff) | |
parent | 358c8c95725380eafe9f2aed0a4e2542592e85ff (diff) | |
download | bionic-android10-c2f2-s2-release.tar.gz |
Snap for 5716220 from 358c8c95725380eafe9f2aed0a4e2542592e85ff to qt-c2f2-releaseandroid-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-release
Change-Id: Ic12d1bd51d7b2e6540111956676f7f34cddb025d
-rw-r--r-- | libc/bionic/jemalloc_wrapper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/bionic/jemalloc_wrapper.cpp b/libc/bionic/jemalloc_wrapper.cpp index bf0494dde..7d0445784 100644 --- a/libc/bionic/jemalloc_wrapper.cpp +++ b/libc/bionic/jemalloc_wrapper.cpp @@ -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); |