Skip to content

Commit

Permalink
[compiler-rt] Add Android page size comment and formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
funsafe-ptr committed Nov 23, 2024
1 parent da104df commit 0506266
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
# endif

# if SANITIZER_ANDROID && __ANDROID_API__ < 35
// The weak strerrorname_np definition allows to check for the API level at runtime.
// The weak strerrorname_np definition allows to check for the API level at
// runtime.
extern "C" SANITIZER_WEAK_ATTRIBUTE const char* strerrorname_np(int);
# endif

Expand Down Expand Up @@ -1219,8 +1220,9 @@ uptr GetPageSize() {
CHECK_EQ(rv, 0);
return (uptr)pz;
# elif SANITIZER_USE_GETAUXVAL

# if SANITIZER_ANDROID && __ANDROID_API__ < 35
// The 16 KB page size was introduced in Android 15, while earlier versions
// of Android used a 4 KB page size.
if (!strerrorname_np)
return 4096;
# endif
Expand Down

0 comments on commit 0506266

Please sign in to comment.