[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 03:42:04 PDT 2025


================
@@ -281,6 +281,24 @@ TSAN_INTERCEPTOR(void, os_unfair_lock_lock, os_unfair_lock_t lock) {
   Acquire(thr, pc, (uptr)lock);
 }
 
+// os_unfair_lock_lock_with_flags was introduced in macOS 15
+#  if defined(__MAC_15_0)
----------------
DanBlackwell wrote:

Just to note that we can make this work for other platforms using `__IPHONE_18_0` and friends from `AvailabilityVersions.h`.

https://github.com/llvm/llvm-project/pull/153815


More information about the llvm-commits mailing list