Disable JEMALLOC_HAVE_MADVISE_HUGE for arm* CPUs.

This commit is contained in:
marxin 2018-01-02 10:29:19 +01:00 committed by David Goldblatt
parent 72bdbc35e3
commit 433c2edabc

View File

@ -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.