[PATCH] D14987: [tsan] Add interceptors for Darwin-specific locking APIs

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 04:48:59 PST 2015


kubabrecka updated this revision to Diff 41740.
kubabrecka added a comment.

Updating patch to move interceptors into tsan_interceptors_mac.cc, added checks for thr->is_dead.

However, I also needed to change calls to MutexLock/MutexUnlock to just Acquire/Release, because they are used as a low-level primitive in the implementation of pthread mutexes and it caused false "double-locked mutex" warnings.


http://reviews.llvm.org/D14987

Files:
  lib/tsan/CMakeLists.txt
  lib/tsan/rtl/tsan_interceptors_mac.cc
  test/tsan/Darwin/osspinlock-norace.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14987.41740.patch
Type: text/x-patch
Size: 4059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151203/3d413f67/attachment.bin>


More information about the llvm-commits mailing list