This is an archive of the discontinued LLVM Phabricator instance.

tsan: rearrange thread state callbacks (NFC)
ClosedPublic

Authored by dvyukov on Sep 21 2021, 1:23 AM.

Details

Summary

Thread state functions are split into 2 parts:
tsan entry function (e.g. ThreadStart) and thread registry
state change callback (e.g. OnStart). Currently these
pairs of functions are located far from each other and
in reverse order. This makes it hard to read and follow the logic.
Reorder the code so that OnFoo directly follows ThreadFoo.
No other code changes.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Sep 21 2021, 1:23 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2021, 1:23 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Sep 21 2021, 2:27 AM
This revision is now accepted and ready to land.Sep 21 2021, 2:27 AM
This revision was automatically updated to reflect the committed changes.