[compiler-rt] [TSan] Add interceptor for os_unfair_lock_lock_with_flags (PR #153815)
Dan Blackwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 04:08:17 PDT 2025
================
@@ -15,6 +16,18 @@ void *Thread(void *a) {
return NULL;
}
+#if defined(__MAC_15_0)
+void *ThreadWithFlags(void *a) {
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunguarded-availability-new"
+ os_unfair_lock_lock_with_flags(&lock, OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN);
----------------
DanBlackwell wrote:
I have updated the code to support all platforms now.
https://github.com/llvm/llvm-project/pull/153815
More information about the llvm-commits
mailing list