HomePhabricator

[tsan] Avoid calling Block_copy in the "sync" GCD interceptors

Authored by kubamracek on Aug 21 2018, 2:24 PM.

Description

[tsan] Avoid calling Block_copy in the "sync" GCD interceptors

The synchronous dispatch functions in GCD (dispatch_sync, dispatch_barrier_sync), don't make a copy of the passed block. To maintain binary compatibility, we should avoid doing that as well in TSan, as there's no reason to do that. The synchronous dispatch functions will not return before the block is actually executed.

rdar://problem/42242579

Differential Revision: https://reviews.llvm.org/D50920

llvm-svn: 340342

Details

Committed
kubamracekAug 21 2018, 2:24 PM
Differential Revision
D50920: [tsan] Avoid calling Block_copy in the "sync" GCD interceptors
Parents
rGdf4cd7cbf97c: [MS Demangler] Fix a few more edge cases.
Branches
Unknown
Tags
Unknown