Move `je_cv_thp` logic closer to definition
This commit is contained in:
parent
b82333fdec
commit
a361e886e2
19
configure.ac
19
configure.ac
|
@ -2471,6 +2471,16 @@ 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
|
||||||
|
AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ], [ ])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl Check for madvise(..., MADV_[NO]CORE).
|
dnl Check for madvise(..., MADV_[NO]CORE).
|
||||||
JE_COMPILABLE([madvise(..., MADV_[[NO]]CORE)], [
|
JE_COMPILABLE([madvise(..., MADV_[[NO]]CORE)], [
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
@ -2481,15 +2491,6 @@ if test "x${je_cv_madvise}" = "xyes" ; then
|
||||||
if test "x${je_cv_madv_nocore}" = "xyes" ; then
|
if test "x${je_cv_madv_nocore}" = "xyes" ; then
|
||||||
AC_DEFINE([JEMALLOC_MADVISE_NOCORE], [ ], [ ])
|
AC_DEFINE([JEMALLOC_MADVISE_NOCORE], [ ], [ ])
|
||||||
fi
|
fi
|
||||||
case "${host_cpu}" in
|
|
||||||
arm*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if test "x${je_cv_thp}" = "xyes" ; then
|
|
||||||
AC_DEFINE([JEMALLOC_HAVE_MADVISE_HUGE], [ ], [ ])
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
dnl Check for posix_madvise.
|
dnl Check for posix_madvise.
|
||||||
JE_COMPILABLE([posix_madvise], [
|
JE_COMPILABLE([posix_madvise], [
|
||||||
|
|
Loading…
Reference in New Issue