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_HUGEPAGE);
madvise((void *)0, 0, MADV_NOHUGEPAGE); madvise((void *)0, 0, MADV_NOHUGEPAGE);
], [je_cv_thp]) ], [je_cv_thp])
case "${host_cpu}" in
arm*)
;;
*)
if test "x${je_cv_thp}" = "xyes" ; then if test "x${je_cv_thp}" = "xyes" ; then
AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ]) AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ])
fi fi
;;
esac
fi fi
dnl Enable transparent huge page support by default. dnl Enable transparent huge page support by default.