This is an archive of the discontinued LLVM Phabricator instance.

tsan: fix and test detection of TLS races
ClosedPublic

Authored by dvyukov on Sep 27 2021, 5:43 AM.

Details

Summary

Currently detection of races with TLS/stack initialization
is broken because we imitate the write before thread initialization,
so it's modelled with a wrong thread/epoch.
Fix that and add a test.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Sep 27 2021, 5:43 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2021, 5:43 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Sep 27 2021, 6:00 AM
This revision is now accepted and ready to land.Sep 27 2021, 6:00 AM
This revision was landed with ongoing or failed builds.Sep 27 2021, 7:40 AM
This revision was automatically updated to reflect the committed changes.