This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Do not report errors in __destroy_helper_block_
ClosedPublic

Authored by zaks.anna on Jan 5 2017, 5:10 PM.

Details

Summary

There is a synchronization point between the reference count of a block dropping to zero and it's destruction, which TSan does not observe. Do not report errors in the compiler-emitted block destroy method and everything called from it.

This is similar to https://reviews.llvm.org/D25857

Diff Detail

Repository
rL LLVM

Event Timeline

zaks.anna updated this revision to Diff 83328.Jan 5 2017, 5:10 PM
zaks.anna retitled this revision from to [tsan] Do not report errors in __destroy_helper_block_.
zaks.anna updated this object.
zaks.anna added a reviewer: kubamracek.
zaks.anna added a subscriber: cfe-commits.
kubamracek accepted this revision.Jan 5 2017, 5:39 PM
kubamracek edited edge metadata.
This revision is now accepted and ready to land.Jan 5 2017, 5:39 PM
This revision was automatically updated to reflect the committed changes.