Mutex does not support LINKER_INITIALIZED ctor.
But we used to support it with BlockingMutex.
To prevent potential bugs delete LINKER_INITIALIZED Mutex ctor.
Also mark existing ctor as explicit.
Depends on D106944.
Paths
| Differential D106945
sanitizer_common: prohibit Mutex(LINKER_INITIALIZED) ClosedPublic Authored by dvyukov on Jul 28 2021, 4:16 AM.
Details Summary Mutex does not support LINKER_INITIALIZED ctor. Depends on D106944.
Diff Detail
Event Timelinedvyukov added a child revision: D106936: sanitizer_common: replace RWMutex/BlockingMutex with Mutex.Jul 28 2021, 4:19 AM This revision is now accepted and ready to land.Jul 28 2021, 5:54 AM Closed by commit rG48cbcb909d9b: sanitizer_common: prohibit Mutex(LINKER_INITIALIZED) (authored by dvyukov). · Explain WhyJul 28 2021, 6:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 362356 compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
|