summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-08-10 13:14:26 -0700
committerQi Wang <interwq@gmail.com>2017-08-11 14:51:20 -0700
commit8fdd9a579779b84d6af27f94c295f82a4df8e5be (patch)
tree69816fe49c5e134f176020f05390df0cb82afccc /configure.ac
parentd157864027562dc17475edfd1bc6dce559b7ac4b (diff)
Implement opt.metadata_thp
This option enables transparent huge page for base allocators (require MADV_HUGEPAGE support).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ba0409a5..e1a7343f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1824,6 +1824,9 @@ if test "x${je_cv_madvise}" = "xyes" ; then
madvise((void *)0, 0, MADV_HUGEPAGE);
madvise((void *)0, 0, MADV_NOHUGEPAGE);
], [je_cv_thp])
+ if test "x${je_cv_thp}" = "xyes" ; then
+ AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ])
+ fi
fi
dnl Enable transparent huge page support by default.