mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03: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. Resolves jemalloc/jemalloc#2657
This commit is contained in:
parent
0d7a26e9b6
commit
5d6efc6f58
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue