Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

bionic: Commit

bionic


Commit MetaInfo

Revision358c8c95725380eafe9f2aed0a4e2542592e85ff (tree)
Time2019-07-10 03:38:34
AuthorChristopher Ferris <cferris@goog...>
Commiterandroid-build-merger

Log Message

Do not check tcache clear when doing a purge.
am: 5cda74e065

Change-Id: I6fdf747408e96c1f99c4544e94a97835c8588d19

Change Summary

Incremental Difference

--- a/libc/bionic/jemalloc_wrapper.cpp
+++ b/libc/bionic/jemalloc_wrapper.cpp
@@ -107,9 +107,8 @@ int je_mallopt(int param, int value) {
107107 // clear the caches of other threads.
108108 // This must be done first so that cleared allocations get purged
109109 // in the next calls.
110- if (je_mallctl("thread.tcache.flush", nullptr, nullptr, nullptr, 0) != 0) {
111- return 0;
112- }
110+ // Ignore the return call since this will fail if the tcache is disabled.
111+ je_mallctl("thread.tcache.flush", nullptr, nullptr, nullptr, 0);
113112
114113 unsigned narenas;
115114 size_t sz = sizeof(unsigned);
Show on old repository browser