summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-03-17 14:41:36 +0000
committerKostya Serebryany <kcc@google.com>2014-03-17 14:41:36 +0000
commit897653962728e595f52ddd55382253c1d4dbabc8 (patch)
tree14faf049214a5e9690af6460cd81f8300ef61107 /compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h
parent1fd6f1f8d6ce5dda212260c90a357f93087de536 (diff)
downloadbcm5719-llvm-897653962728e595f52ddd55382253c1d4dbabc8.tar.gz
bcm5719-llvm-897653962728e595f52ddd55382253c1d4dbabc8.zip
[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
llvm-svn: 204042
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h b/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h
index 5d1ecf42830..9c5dc8f4b5a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h
+++ b/compiler-rt/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];
};
OpenPOWER on IntegriCloud