summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2018-01-02 09:29:19 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2018-01-04 19:13:32 (GMT)
commit433c2edabc5c03ae069ac652857c05c673807d0c (patch)
tree7f266d80ef683d2aadf965d04c7adb3115f0d602
parent72bdbc35e3231db91def5f466d41778ee04d7e64 (diff)
downloadjemalloc-433c2edabc5c03ae069ac652857c05c673807d0c.zip
jemalloc-433c2edabc5c03ae069ac652857c05c673807d0c.tar.gz
jemalloc-433c2edabc5c03ae069ac652857c05c673807d0c.tar.bz2
Disable JEMALLOC_HAVE_MADVISE_HUGE for arm* CPUs.
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7544f57..9432dc6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1863,9 +1863,15 @@ if test "x${je_cv_madvise}" = "xyes" ; then
madvise((void *)0, 0, MADV_HUGEPAGE);
madvise((void *)0, 0, MADV_NOHUGEPAGE);
], [je_cv_thp])
+case "${host_cpu}" in
+ arm*)
+ ;;
+ *)
if test "x${je_cv_thp}" = "xyes" ; then
AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ])
fi
+ ;;
+esac
fi
dnl Enable transparent huge page support by default.