[NFC][lsan] Make mutex static
authorVitaly Buka <vitalybuka@google.com>
Mon, 29 May 2023 04:50:08 +0000 (21:50 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 29 May 2023 04:52:20 +0000 (21:52 -0700)
compiler-rt/lib/lsan/lsan_common.cpp

index 21430e3..74cd499 100644 (file)
@@ -42,7 +42,7 @@ namespace __lsan {
 
 // This mutex is used to prevent races between DoLeakCheck and IgnoreObject, and
 // also to protect the global list of root regions.
-Mutex global_mutex;
+static Mutex global_mutex;
 
 Flags lsan_flags;