This is an archive of the discontinued LLVM Phabricator instance.

tsan: disable thread safety analysis in more functions
ClosedPublic

Authored by dvyukov on Jul 22 2021, 6:51 AM.

Details

Summary

In preparation for replacing tsan Mutex with sanitizer_common Mutex,
which has thread-safety annotations. Thread safety analysis does not
understand MetaMap::GetAndLock which returns a locked sync object.

Diff Detail

Event Timeline

dvyukov created this revision.Jul 22 2021, 6:51 AM
dvyukov requested review of this revision.Jul 22 2021, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 6:51 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov updated this revision to Diff 360797.Jul 22 2021, 6:56 AM

re-upload in the hope that arc will auto-set dependent reviews

vitalybuka accepted this revision.Jul 22 2021, 9:52 AM
This revision is now accepted and ready to land.Jul 22 2021, 9:52 AM
melver accepted this revision.Jul 22 2021, 10:00 AM
This revision was landed with ongoing or failed builds.Jul 23 2021, 12:13 AM
This revision was automatically updated to reflect the committed changes.