HomePhabricator

[tsan] Fix synchronization in dispatch_sync

Authored by kubamracek on Apr 7 2016, 4:33 AM.

Description

[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

Details

Committed
kubamracekApr 7 2016, 4:33 AM
Differential Revision
D18502: [tsan] Fix synchronization in dispatch_sync
Parents
rGaafb41ae4735: [tsan] Fix Darwin tests (missing FileCheck's)
Branches
Unknown
Tags
Unknown