HomePhabricator

[tsan] Fix synchronization in dispatch_sync

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

Details

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