[PATCH] D29594: Add tid validation checks to blocking mutex and rw mutex

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 10:54:53 PST 2017


fjricci created this revision.

Blocking mutex currently only performs tid validation checks
in the mac and windows implementations. Add these checks to the
linux implementation as well.

Also add analogous validation checks to rw mutex. In order to
access the current tid, this requires moving the implementation
of rw mutex out of the sanitizer mutex header file.


https://reviews.llvm.org/D29594

Files:
  lib/sanitizer_common/sanitizer_common.cc
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_mutex.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29594.87266.patch
Type: text/x-patch
Size: 6344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170206/6abd9256/attachment.bin>


More information about the llvm-commits mailing list