summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-08-11 22:41:52 (GMT)
committerQi Wang <interwq@gmail.com>2017-08-11 22:57:12 (GMT)
commit3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b (patch)
treed4777143d2244dfe788c23bc0f341e1fa0c3443b /include/jemalloc/internal
parent8fdd9a579779b84d6af27f94c295f82a4df8e5be (diff)
downloadjemalloc-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.zip
jemalloc-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.tar.gz
jemalloc-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.tar.bz2
Fix test/unit/pages.
As part of the metadata_thp support, We now have a separate swtich (JEMALLOC_HAVE_MADVISE_HUGE) for MADV_HUGEPAGE availability. Use that instead of JEMALLOC_THP (which doesn't guard pages_huge anymore) in tests.
Diffstat (limited to 'include/jemalloc/internal')
-rw-r--r--include/jemalloc/internal/jemalloc_preamble.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in
index 099f98d..f6ed731 100644
--- a/include/jemalloc/internal/jemalloc_preamble.h.in
+++ b/include/jemalloc/internal/jemalloc_preamble.h.in
@@ -61,6 +61,13 @@ static const bool have_dss =
false
#endif
;
+static const bool have_madvise_huge =
+#ifdef JEMALLOC_HAVE_MADVISE_HUGE
+ true
+#else
+ false
+#endif
+ ;
static const bool config_fill =
#ifdef JEMALLOC_FILL
true