aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-11-13 09:53:58 -0800
committerChristopher Ferris <cferris@google.com>2018-11-13 09:53:58 -0800
commit75569e30c58d71c4311b90f7605847279df5c5ed (patch)
treef6eccee54714a68db6aedb5cf5163dfa59dfc02b /include
parentc6954b2064a82404e747d9a763fe8e8d7135e202 (diff)
downloadplatform_external_jemalloc_new-75569e30c58d71c4311b90f7605847279df5c5ed.tar.gz
platform_external_jemalloc_new-75569e30c58d71c4311b90f7605847279df5c5ed.tar.bz2
platform_external_jemalloc_new-75569e30c58d71c4311b90f7605847279df5c5ed.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_defs.h5
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 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