[compiler-rt] 7faf128 - tsan: remove expected race leftover

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 05:13:31 PDT 2021


Author: Dmitry Vyukov
Date: 2021-09-23T14:13:26+02:00
New Revision: 7faf1285f2c416494aacf7ee13e70e330b2f0540

URL: https://github.com/llvm/llvm-project/commit/7faf1285f2c416494aacf7ee13e70e330b2f0540
DIFF: https://github.com/llvm/llvm-project/commit/7faf1285f2c416494aacf7ee13e70e330b2f0540.diff

LOG: tsan: remove expected race leftover

Remove nmissed_expected variable.
It's a leftover from removed "expected race" feature and is never incremented.

Reviewed By: melver

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

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
    compiler-rt/lib/tsan/rtl/tsan_rtl.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
index d4f3b900dec5..19e0f56de630 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
@@ -108,7 +108,6 @@ Context::Context()
     : initialized(),
       report_mtx(MutexTypeReport),
       nreported(),
-      nmissed_expected(),
       thread_registry(CreateThreadContext, kMaxTid, kThreadQuarantineSize,
                       kMaxTidReuse),
       racy_mtx(MutexTypeRacy),
@@ -464,12 +463,6 @@ int Finalize(ThreadState *thr) {
 #endif
   }
 
-  if (ctx->nmissed_expected) {
-    failed = true;
-    Printf("ThreadSanitizer: missed %d expected races\n",
-        ctx->nmissed_expected);
-  }
-
   if (common_flags()->print_suppressions)
     PrintMatchedSuppressions();
 

diff  --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.h b/compiler-rt/lib/tsan/rtl/tsan_rtl.h
index 18063f1098da..9785196d9434 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.h
@@ -306,7 +306,6 @@ struct Context {
 
   Mutex report_mtx;
   int nreported;
-  int nmissed_expected;
   atomic_uint64_t last_symbolize_time_ns;
 
   void *background_thread;


        


More information about the llvm-commits mailing list