diff options
author | Kostya Serebryany <kcc@google.com> | 2014-03-17 14:41:36 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-03-17 14:41:36 +0000 |
commit | 6e756101ca145d7b0a16f2a9eeadc3de38622120 (patch) | |
tree | a08889a5ce69cb4afb4890aa32745ac912e8628f /lib/sanitizer_common/sanitizer_deadlock_detector_interface.h | |
parent | d80aa42b1be94402b1630ef9893bfe468046ba2c (diff) |
[sanitizer] make the deadlock detector print 2*N stack traces on lock-order-inversion with N locks (i.e. print stack traces for both lock acquisitions in every edge in the graph). More improvements to follow
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_deadlock_detector_interface.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_deadlock_detector_interface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h b/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h index 5d1ecf428..9c5dc8f4b 100644 --- a/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h +++ b/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h @@ -47,13 +47,13 @@ struct DDMutex { }; struct DDReport { - enum { kMaxLoopSize = 16 }; + enum { kMaxLoopSize = 8 }; int n; // number of entries in loop struct { u64 thr_ctx; // user thread context u64 mtx_ctx0; // user mutex context, start of the edge u64 mtx_ctx1; // user mutex context, end of the edge - u32 stk; // stack id for the edge + u32 stk[2]; // stack ids for the edge } loop[kMaxLoopSize]; }; |