Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,10 @@ uptr GetPageSize() {
int rv = internal_sysctl(mib, 2, &pz, &pzl, nullptr, 0);
CHECK_EQ(rv, 0);
return (uptr)pz;
# elif SANITIZER_ANDROID
// Using `getpagesize` because calling `getauxval` or `sysconf` from the
// `.preinit_array` can cause crashes on some older API levels.
return getpagesize();
# elif SANITIZER_USE_GETAUXVAL
return getauxval(AT_PAGESZ);
# else
Expand Down
Loading