From 73557dda0918b7a3e4184a6431118c64f04aefff Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 17 Mar 2014 14:56:04 +0000 Subject: [sanitizer] reverse the order of the stack traces printed for every pair of locks in the deadlock report (first print the 'from' node, then print the 'to' node of the deadlock graph) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204043 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_deadlock_detector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_deadlock_detector.h') diff --git a/lib/sanitizer_common/sanitizer_deadlock_detector.h b/lib/sanitizer_common/sanitizer_deadlock_detector.h index a75612a03..637153c90 100644 --- a/lib/sanitizer_common/sanitizer_deadlock_detector.h +++ b/lib/sanitizer_common/sanitizer_deadlock_detector.h @@ -231,8 +231,8 @@ class DeadlockDetector { added_edges, ARRAY_SIZE(added_edges)); for (uptr i = 0; i < n_added_edges; i++) { if (n_edges_ < ARRAY_SIZE(edges_)) - edges_[n_edges_++] = Edge((u16)added_edges[i], (u16)cur_idx, stk, - dtls->findLockContext(added_edges[i])); + edges_[n_edges_++] = Edge((u16)added_edges[i], (u16)cur_idx, + dtls->findLockContext(added_edges[i]), stk); // Printf("Edge [%zd]: %u %zd=>%zd\n", i, stk, added_edges[i], cur_idx); } return n_added_edges; -- cgit v1.2.3