This is an archive of the discontinued LLVM Phabricator instance.

sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex
ClosedPublic

Authored by dvyukov on Jul 28 2021, 4:16 AM.

Details

Summary

Mutex does not support LINKER_INITIALIZED support.
As preparation to switching BlockingMutex to Mutex,
proactively replace all BlockingMutex(LINKER_INITIALIZED) to Mutex.
All of these are objects with static storage duration and Mutex ctor
is constexpr, so it should be equivalent.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 28 2021, 4:16 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2021, 4:16 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov added inline comments.Jul 28 2021, 4:23 AM
compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp
54

This change is different from the rest.
There is only 1 static instance of this class below.

melver accepted this revision.Jul 28 2021, 5:53 AM
This revision is now accepted and ready to land.Jul 28 2021, 5:53 AM
This revision was landed with ongoing or failed builds.Jul 28 2021, 6:09 AM
This revision was automatically updated to reflect the committed changes.