tsan: rename deadlock detector Mutex to UserMutex
authorDmitry Vyukov <dvyukov@google.com>
Thu, 29 Jul 2021 10:01:52 +0000 (12:01 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 29 Jul 2021 10:38:14 +0000 (12:38 +0200)
It conflicts with sanitizer_common Mutex.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107053

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

index b1e19be..5871a71 100644 (file)
@@ -19,7 +19,7 @@ namespace __dsan {
 
 typedef DDFlags Flags;
 
-struct Mutex {
+struct UserMutex {
   DDMutex dd;
 };
 
@@ -37,7 +37,7 @@ struct Callback final : public DDCallback {
   u32 Unwind() override;
 };
 
-typedef AddrHashMap<Mutex, 31051> MutexHashMap;
+typedef AddrHashMap<UserMutex, 31051> MutexHashMap;
 
 struct Context {
   DDetector *dd;