[all-commits] [llvm/llvm-project] 0afee5: [Darwin][TSan] Use deadlock detector aware calls f...

Dan Blackwell via All-commits all-commits at lists.llvm.org
Thu Sep 10 05:24:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0afee5c04021a2c8218beb6a64f3afd5f2578c02
      https://github.com/llvm/llvm-project/commit/0afee5c04021a2c8218beb6a64f3afd5f2578c02
  Author: Dan Blackwell <dan_blackwell at apple.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
    A compiler-rt/test/tsan/Darwin/os_unfair_lock_deadlock.c
    A compiler-rt/test/tsan/Darwin/trylock_no_deadlock.c

  Log Message:
  -----------
  [Darwin][TSan] Use deadlock detector aware calls for Darwin-specific lock interceptors (#216040)

Currently the deadlock detector is unaware of these lock types because
the interceptors use bare Acquire-Release calls. This patch switches
them over to the Mutex(Pre|Post)Lock calls instead.

Assisted by: Claude

rdar://155410097



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list