HomePhabricator

[tsan] Avoid false positives with GCD data callbacks

Description

[tsan] Avoid false positives with GCD data callbacks

This patch adds synchronization between the creation of the GCD data object and destructor’s execution. It’s far from perfect, because ideally we’d want to synchronize the destruction of the last reference (via dispatch_release) and the destructor’s execution, but intercepting objc_release is problematic.

Differential Revision: http://reviews.llvm.org/D21990

Details

Committed
kuba.breckaJul 7 2016, 5:38 AM
Differential Revision
D21990: [tsan] Avoid false positives with GCD data callbacks
Parents
rL274748: Fix "not all control paths return a value" warning on MSVC
Branches
Unknown
Tags
Unknown