Skip to content

Commit c99e570

Browse files
committed
Make sure LG_PAGE <= LG_HUGEPAGE.
This resolves jemalloc#883.
1 parent aa363f9 commit c99e570

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,10 @@ if test "x${je_cv_lg_hugepage}" = "x" ; then
13731373
je_cv_lg_hugepage=21
13741374
fi
13751375
fi
1376+
if test "x${LG_PAGE}" != "xundefined" -a \
1377+
"${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
1378+
AC_MSG_ERROR([Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})])
1379+
fi
13761380
AC_DEFINE_UNQUOTED([LG_HUGEPAGE], [${je_cv_lg_hugepage}])
13771381

13781382
AC_ARG_WITH([lg_page_sizes],

0 commit comments

Comments
 (0)