[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:39:58 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:

I borrowed this idea from here: https://github.com/llvm/llvm-project/blob/5cedb0148740e85f1b810e13db1c15ecd2388779/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h#L92.

Do we need to be able to compile the sanitizer runtimes on iOS?

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


More information about the llvm-commits mailing list