bionic
Revision | 358c8c95725380eafe9f2aed0a4e2542592e85ff (tree) |
---|---|
Time | 2019-07-10 03:38:34 |
Author | Christopher Ferris <cferris@goog...> |
Commiter | android-build-merger |
Do not check tcache clear when doing a purge.
am: 5cda74e065
Change-Id: I6fdf747408e96c1f99c4544e94a97835c8588d19
@@ -107,9 +107,8 @@ int je_mallopt(int param, int value) { | ||
107 | 107 | // clear the caches of other threads. |
108 | 108 | // This must be done first so that cleared allocations get purged |
109 | 109 | // 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); | |
113 | 112 | |
114 | 113 | unsigned narenas; |
115 | 114 | size_t sz = sizeof(unsigned); |