mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +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. Closes: #2657
This commit is contained in:
parent
5f353dc283
commit
c51abba131
1 changed files with 5 additions and 0 deletions
|
|
@ -1990,6 +1990,11 @@ case "${host}" in
|
|||
LG_PAGE=14
|
||||
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-*)
|
||||
if test "x$LG_PAGE" = "xdetect"; then
|
||||
LG_PAGE=16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue