diff options
| author | Christopher Ferris <cferris@google.com> | 2020-04-09 16:47:28 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-09 16:47:28 +0000 |
| commit | 43e7e56cf2ac12f7fc0c2814cfad0f88c0304ffd (patch) | |
| tree | 5025083404a8e7c2f24d9a444840303d62c4a604 | |
| parent | 57090d38ab75db6c25a9ceda43c5c27d0928fea1 (diff) | |
| parent | d137d703f1f9e5dcd00ed806e242c0c69acd6541 (diff) | |
| download | platform_external_jemalloc_new-43e7e56cf2ac12f7fc0c2814cfad0f88c0304ffd.tar.gz platform_external_jemalloc_new-43e7e56cf2ac12f7fc0c2814cfad0f88c0304ffd.tar.bz2 platform_external_jemalloc_new-43e7e56cf2ac12f7fc0c2814cfad0f88c0304ffd.zip | |
Only retain for 64 bit. am: 42ee32379d am: d137d703f1
Change-Id: I841eb0b847e6d81d4b513caa6d80ac37965811a4
| -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 */ |
