[tsan] Add interceptor for libcxx __shared_count::__release_shared()
authorKuba Mracek <mracek@apple.com>
Thu, 15 Dec 2016 16:45:28 +0000 (16:45 +0000)
committerKuba Mracek <mracek@apple.com>
Thu, 15 Dec 2016 16:45:28 +0000 (16:45 +0000)
commit659949cb03c7c49a1a9c7096cf211311f5171846
tree49cf1fb227dd29a88605538fc749f4128000f4e5
parentba4642269438839a8710a7e4e3db64fa41170086
[tsan] Add interceptor for libcxx __shared_count::__release_shared()

We already have an interceptor for __shared_weak_count::__release_shared, this patch handles __shared_count::__release_shared in the same way. This should get rid of TSan false positives when using std::future.

Differential Revision: https://reviews.llvm.org/D27797

llvm-svn: 289831
compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc
compiler-rt/test/tsan/Darwin/libcxx-future.mm [new file with mode: 0644]