[compiler-rt] [sanitizer_common] Drop remaining support for Android 5 or older (PR #146187)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 07:19:53 PDT 2025
================
@@ -963,19 +957,8 @@ inline void AndroidLogInit() {}
inline void SetAbortMessage(const char *) {}
#endif
-#if SANITIZER_ANDROID
-void SanitizerInitializeUnwinder();
-AndroidApiLevel AndroidGetApiLevel();
-#else
-inline void AndroidLogWrite(const char *buffer_unused) {}
-inline void SanitizerInitializeUnwinder() {}
-inline AndroidApiLevel AndroidGetApiLevel() { return ANDROID_NOT_ANDROID; }
-#endif
-
inline uptr GetPthreadDestructorIterations() {
-#if SANITIZER_ANDROID
- return (AndroidGetApiLevel() == ANDROID_LOLLIPOP_MR1) ? 8 : 4;
-#elif SANITIZER_POSIX
+#if SANITIZER_POSIX
return 4;
----------------
enh-google wrote:
(unrelated to _this_ cleanup, but i'm curious why -- given the POSIX check -- this isn't `PTHREAD_DESTRUCTOR_ITERATIONS`, given that it's posix that guarantees `<pthread.h>` has that constant, and it's 4 on all of bionic/macOS/musl/glibc...)
https://github.com/llvm/llvm-project/pull/146187
More information about the llvm-commits
mailing list