diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-23 02:12:12 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-23 02:12:12 +0000 |
commit | d1d5bbbf0bea3921f65321cfba8af8754b288e84 (patch) | |
tree | 5025083404a8e7c2f24d9a444840303d62c4a604 | |
parent | 91f65f46593dd87b272773bba1f6cc5fe1fbf8c4 (diff) | |
parent | ae06453fb80da6ac59d33052720115d4cfb40d90 (diff) | |
download | jemalloc_new-android11-d1-s6-release.tar.gz |
Snap for 6419339 from ae06453fb80da6ac59d33052720115d4cfb40d90 to rvc-d1-releaseandroid-11.0.0_r9android-11.0.0_r8android-11.0.0_r7android-11.0.0_r15android-11.0.0_r14android-11.0.0_r13android-11.0.0_r12android-11.0.0_r11android-11.0.0_r10android11-d1-s7-releaseandroid11-d1-s6-releaseandroid11-d1-s5-releaseandroid11-d1-s1-releaseandroid11-d1-release
Change-Id: I0f6232fe225ade5894170095c799a972416f7c4e
-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 */ |