aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-04-22 01:12:57 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-04-22 01:12:57 +0000
commit3eb5b4ea36d07a733f5e0490b4d7509c78ba8553 (patch)
tree5025083404a8e7c2f24d9a444840303d62c4a604
parent168fe05b64c59153d22d754db912af8bb66a3b3f (diff)
parentd3a7616aa26eb5f0b6c46de96730305e21cd3f35 (diff)
downloadplatform_external_jemalloc_new-android11-tests-release.tar.gz
platform_external_jemalloc_new-android11-tests-release.tar.bz2
platform_external_jemalloc_new-android11-tests-release.zip
Change-Id: I61b2b762ab281b5e44c36a8ebb6a6e2b28d5ca84
-rw-r--r--include/jemalloc/internal/jemalloc_internal_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h
index 052bd11c..37ab466f 100644
--- a/include/jemalloc/internal/jemalloc_internal_defs.h
+++ b/include/jemalloc/internal/jemalloc_internal_defs.h
@@ -237,7 +237,12 @@
* common sequences of mmap()/munmap() calls will cause virtual memory map
* holes.
*/
+#if defined(__LP64__)
+// Only use retain for 64 bit since virtual memory can be exhausted
+// very easily when running in 32 bit.
+// See b/142556796.
#define JEMALLOC_RETAIN
+#endif
/* TLS is used to map arenas and magazine caches to threads. */
/* #undef JEMALLOC_TLS */