diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-07-09 21:23:36 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-07-09 21:23:36 +0000 |
commit | dd7955ad8848f14030cfee8a76b0dc5c70ec2846 (patch) | |
tree | e060019567adf0d4f64d6e60fbe6f82a5b715af4 | |
parent | 695b2459ec6f8a62d2bd76ef48945ca853420451 (diff) | |
parent | 5cda74e065761bbeccf7ff61d7a3131bdf6490d0 (diff) | |
download | bionic-android10-mainline-a-release.tar.gz |
Snap for 5715241 from 5cda74e065761bbeccf7ff61d7a3131bdf6490d0 to qt-aml-releaseandroid-mainline-10.0.0_r3android-mainline-10.0.0_r2android-mainline-10.0.0_r1android10-mainline-releaseandroid10-mainline-a-release
Change-Id: Icda697f4218559937031b91580cf44f1fa5cf4cf
-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); |