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
2 files changed