This is an archive of the discontinued LLVM Phabricator instance.

tsan: don't save creation stack for some sync objects
ClosedPublic

Authored by dvyukov on Aug 2 2021, 2:09 AM.

Details

Summary

Currently we save the creation stack for sync objects always.
But it's not needed to some sync objects, most notably atomics.
We simply don't use atomic creation stack anywhere.
Allow callers to control saving of the creation stack
and don't save it for atomics.

Depends on D107257.

Diff Detail

Event Timeline

dvyukov created this revision.Aug 2 2021, 2:09 AM
dvyukov requested review of this revision.Aug 2 2021, 2:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 2:09 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Aug 2 2021, 4:24 AM
This revision is now accepted and ready to land.Aug 2 2021, 4:24 AM
This revision was landed with ongoing or failed builds.Aug 2 2021, 4:30 AM
This revision was automatically updated to reflect the committed changes.