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 09:21:41 +0000
committerKostya Serebryany <kcc@google.com>2014-03-17 09:21:41 +0000
commitb9cb473fb8fc35b47679f9e2c1ea3e3195488098 (patch)
tree375a4db1a618d3e319e3193c6fe197a407078377 /compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h
parentd674e6bdde6e948daef2b14ebf3a17811eee9c87 (diff)
downloadbcm5719-llvm-b9cb473fb8fc35b47679f9e2c1ea3e3195488098.tar.gz
bcm5719-llvm-b9cb473fb8fc35b47679f9e2c1ea3e3195488098.zip
[sanitizer] fix build warnings; add an output test for the deadlock detecor
llvm-svn: 204035
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.h3
1 files changed, 2 insertions, 1 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 51e55f4a8f5..5d1ecf42830 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,14 @@ struct DDMutex {
};
struct DDReport {
+ enum { kMaxLoopSize = 16 };
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
- } loop[16];
+ } loop[kMaxLoopSize];
};
struct DDCallback {
OpenPOWER on IntegriCloud