diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-22 01:12:57 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-22 01:12:57 +0000 |
| commit | 3eb5b4ea36d07a733f5e0490b4d7509c78ba8553 (patch) | |
| tree | 5025083404a8e7c2f24d9a444840303d62c4a604 | |
| parent | 168fe05b64c59153d22d754db912af8bb66a3b3f (diff) | |
| parent | d3a7616aa26eb5f0b6c46de96730305e21cd3f35 (diff) | |
| download | platform_external_jemalloc_new-android11-gsi.tar.gz platform_external_jemalloc_new-android11-gsi.tar.bz2 platform_external_jemalloc_new-android11-gsi.zip | |
Snap for 6416172 from d3a7616aa26eb5f0b6c46de96730305e21cd3f35 to rvc-releaseandroid-vts-11.0_r1android-cts-11.0_r1android-11.0.0_r3android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1android11-tests-releaseandroid11-releaseandroid11-gsi
Change-Id: I61b2b762ab281b5e44c36a8ebb6a6e2b28d5ca84
| -rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h | 5 |
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 */ |
