This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: remove BlockingMutex and RWMutex
ClosedPublic

Authored by dvyukov on Jul 29 2021, 1:02 AM.

Details

Summary

Remove the legacy typedefs and use Mutex/Lock types directly.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 29 2021, 1:02 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2021, 1:02 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver added inline comments.Jul 29 2021, 2:29 AM
compiler-rt/lib/tsan/dd/dd_rtl.cpp
41

This warning is genuine I think and is related to the 'struct Mutex' shadowing the real Mutex.

compiler-rt/lib/tsan/dd/dd_rtl.h
22

This Mutex is shadowing __sanitizer::Mutex.

I was first confused why it's not required to say __sanitizer::Mutex, but in sanitizer_internal_defs.h, this is using namespace __sanitizer.

dvyukov added inline comments.
compiler-rt/lib/tsan/dd/dd_rtl.cpp
41
melver accepted this revision.Jul 29 2021, 3:06 AM
This revision is now accepted and ready to land.Jul 29 2021, 3:06 AM
This revision was landed with ongoing or failed builds.Jul 29 2021, 3:39 AM
This revision was automatically updated to reflect the committed changes.