[PATCH] D31449: [tsan] Don't report deadlocks when ignore_reads_and_writes > 0

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 03:03:36 PDT 2017


dvyukov added inline comments.


================
Comment at: lib/tsan/dd/dd_rtl.cc:40
 static void ReportDeadlock(Thread *thr, DDReport *rep) {
-  if (rep == 0)
+  if (rep == 0 || thr->ignore_reads_writes_and_reports)
     return;
----------------
This is a Thread from dd_rtl.h, this is not ThreadState from tsan_rtl.h. It does not have that field.


Repository:
  rL LLVM

https://reviews.llvm.org/D31449





More information about the llvm-commits mailing list