[PATCH] D21609: [tsan] Intercept libcxx __release_shared to avoid false positive with weak_ptrs and destructors in C++

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 03:56:29 PDT 2016


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

Updating patch, adding comment, adding a flag to disable the interceptor, adding a test for recursive shared_ptr destruction, adding a stress test.


http://reviews.llvm.org/D21609

Files:
  lib/tsan/rtl/tsan_flags.inc
  lib/tsan/rtl/tsan_interceptors_mac.cc
  test/tsan/Darwin/libcxx-shared-ptr.mm
  test/tsan/Darwin/libcxx-shared-ptr2.mm
  test/tsan/Darwin/libcxx-shared-ptr3.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21609.61771.patch
Type: text/x-patch
Size: 7397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160624/e160fbff/attachment.bin>


More information about the llvm-commits mailing list