diff options
author | Christopher Ferris <cferris@google.com> | 2020-04-09 17:26:37 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-09 17:26:37 +0000 |
commit | b2fc1de849e94a4880ef3974fd243ae70afdf299 (patch) | |
tree | 5025083404a8e7c2f24d9a444840303d62c4a604 | |
parent | a259bf87067c57ccbdee11f54efcf6b533d1ccf0 (diff) | |
parent | 443236a516b5401ee6b5c24ed4280a452808bcda (diff) |
Only retain for 64 bit. am: 42ee32379d am: d137d703f1 am: 2890fd07de am: e6a1fb2c87 am: 443236a516
Change-Id: Ibea4d7849633cd0f50cfeef63c1f72032d7c0ae9
-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 */ |