aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-04-07 11:33:44 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-04-07 11:33:44 +0000
commit33c15c91a674045a47eadb559d41c77d5997af66 (patch)
tree559739a40a9760d6b5c3934ddb3c0c30c8334380 /llvm/lib/IR/Module.cpp
parentaafb41ae473576c1c06bf3d03dcb1fec15f7b711 (diff)
downloadllvm-33c15c91a674045a47eadb559d41c77d5997af66.zip
llvm-33c15c91a674045a47eadb559d41c77d5997af66.tar.gz
llvm-33c15c91a674045a47eadb559d41c77d5997af66.tar.bz2
[tsan] Fix synchronization in dispatch_sync
In the interceptor for dispatch_sync, we're currently missing synchronization between the callback and the code *after* the call to dispatch_sync. This patch fixes this by adding an extra release+acquire pair to dispatch_sync() and similar APIs. Added a testcase. Differential Revision: http://reviews.llvm.org/D18502 llvm-svn: 265659
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions