Skip to content
Commit 4d81bbdf authored by Kuba Brecka's avatar Kuba Brecka
Browse files

[tsan] Stop extending the block’s lifetime in dispatch_group_async

The dispatch_group_async interceptor actually extends the lifetime of the executed block. This means the destructor of the block (and captured variables) is called *after* dispatch_group_leave, which changes the semantics of dispatch_group_async.  This patch fixes that.

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

llvm-svn: 274117
parent 7cbd742e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment