Skip to content

Commit 0506266

Browse files
committed
[compiler-rt] Add Android page size comment and formatting.
1 parent da104df commit 0506266

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
# endif
8484

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

@@ -1219,8 +1220,9 @@ uptr GetPageSize() {
12191220
CHECK_EQ(rv, 0);
12201221
return (uptr)pz;
12211222
# elif SANITIZER_USE_GETAUXVAL
1222-
12231223
# if SANITIZER_ANDROID && __ANDROID_API__ < 35
1224+
// The 16 KB page size was introduced in Android 15, while earlier versions
1225+
// of Android used a 4 KB page size.
12241226
if (!strerrorname_np)
12251227
return 4096;
12261228
# endif

0 commit comments

Comments
 (0)