tsan: fix deadlock reporting
authorDmitry Vyukov <dvyukov@google.com>
Thu, 18 Dec 2014 14:05:34 +0000 (14:05 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 18 Dec 2014 14:05:34 +0000 (14:05 +0000)
currently deadlock detector reports effectively random stacks in report after flush
because it looks at old edges with wrong stacks

llvm-svn: 224519

compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector.h

index c3ca210..86d5743 100644 (file)
@@ -178,6 +178,7 @@ class DeadlockDetector {
     recycled_nodes_.clear();
     available_nodes_.setAll();
     g_.clear();
+    n_edges_ = 0;
     return getAvailableNode(data);
   }