mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Determine the page size on Android from NDK header files
The definition of the PAGE_SIZE macro is used as a signal for a 32-bit target or a 64-bit target with an older NDK. Otherwise, a 16KiB page size is assumed. Closes: #2657
This commit is contained in:
committed by
Guangli Dai
parent
5f353dc283
commit
c51abba131
@@ -1990,6 +1990,11 @@ case "${host}" in
|
|||||||
LG_PAGE=14
|
LG_PAGE=14
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
*-*-linux-android)
|
||||||
|
if test "x$LG_PAGE" = "xdetect"; then
|
||||||
|
AC_CHECK_DECLS([PAGE_SIZE], [LG_PAGE=12], [LG_PAGE=14], [#include <sys/user.h>])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
aarch64-unknown-linux-*)
|
aarch64-unknown-linux-*)
|
||||||
if test "x$LG_PAGE" = "xdetect"; then
|
if test "x$LG_PAGE" = "xdetect"; then
|
||||||
LG_PAGE=16
|
LG_PAGE=16
|
||||||
|
|||||||
Reference in New Issue
Block a user