[compiler-rt] [TSan] Add interceptor for os_unfair_lock_lock_with_flags (PR #153815)

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 18:51:30 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)
----------------
yln wrote:

_Sanity check_ that this does the right thing on other platforms: it should be present on iOS and others, right?

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


More information about the llvm-commits mailing list