summaryrefslogtreecommitdiff
path: root/libnativeloader/native_loader_test.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-06-24 20:06:13 -0700
committer Colin Cross <ccross@android.com> 2022-06-28 22:09:11 +0000
commitb2edcace3ce887b1a53c486cf68cc69d9c930e89 (patch)
tree5125facd494412545a875662c69082993c72b5b2 /libnativeloader/native_loader_test.cpp
parent68a2386989a081b5937897ed7fb82338418d53be (diff)
Use kPageSize instead of PAGE_SIZE
Arm64 musl libc doesn't define PAGE_SIZE because it is not guaranteed to be constant across arm64 kernels; it could be 4Kb, 16Kb or 64Kb. Use kPageSize instead, which is currently hardcoded to 4096 but is at least checked against sysconf(_SC_PAGE_SIZE). Support for non-4K pages later will require kPageSize to be initialized at runtime. Bug: 236052820 Test: libartbase builds with linux musl arm64 Change-Id: Ib2c398398ad6aa12ee68e52c94ece7b7803f3013
Diffstat (limited to 'libnativeloader/native_loader_test.cpp')
0 files changed, 0 insertions, 0 deletions