From 75569e30c58d71c4311b90f7605847279df5c5ed Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Tue, 13 Nov 2018 09:53:58 -0800 Subject: Change the minimum map size. Change the minimum size of a map to make sure that the entropy of allocations is no worse than jemalloc4. At a future point, we should see how increasing entropy affects performance. Test: All unit tests pass. Change-Id: I644f4fc84fa4ad80ce37fecbe48accbd6cb1034e --- include/jemalloc/internal/jemalloc_internal_defs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h index 15886468..c76953ad 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h +++ b/include/jemalloc/internal/jemalloc_internal_defs.h @@ -215,7 +215,12 @@ * system does not explicitly support huge pages; system calls that require * explicit huge page support are separately configured. */ +/* ANDROID NOTE: This determines how big a default map'd page is. */ +#if !defined(__LP64__) +#define LG_HUGEPAGE 20 +#else #define LG_HUGEPAGE 21 +#endif /* * If defined, adjacent virtual memory mappings with identical attributes -- cgit v1.2.3