summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitReader.cpp
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-12-18 11:16:24 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-12-18 11:16:24 +0000
commitf9cc9d7392adeffc52a4cdf3f93d42f2a18b68f9 (patch)
treed9bc4a7ecfbde010b13734c5a2a8d2d0be205cae /llvm/lib/Bitcode/Reader/BitReader.cpp
parented237938da703c55cf83de0ca5090aa35a774a27 (diff)
downloadbcm5719-llvm-f9cc9d7392adeffc52a4cdf3f93d42f2a18b68f9.tar.gz
bcm5719-llvm-f9cc9d7392adeffc52a4cdf3f93d42f2a18b68f9.zip
[tsan] Fix scoping of ScopedInteceptor in libdispatch support
Some interceptors in tsan_libdispatch_mac.cc currently wrongly use TSAN_SCOPED_INTERCEPTOR/ScopedInterceptor. Its constructor can start ignoring memory accesses, and the destructor the stops this -- however, e.g. dispatch_sync can call user's code, so the ignoring will extend to user's code as well. This is not expected and we should only limit the scope of ScopedInterceptor to TSan code. This patch introduces annotations that mark the beginning and ending of a callback into user's code. Differential Revision: http://reviews.llvm.org/D15419 llvm-svn: 255995
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud