diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2014-03-18 12:53:05 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2014-03-18 12:53:05 +0000 |
| commit | b72bc2ec9c3f7acff3f7fe27ad656715ff83b37f (patch) | |
| tree | 0598b17696ba7c3c26d645bc99989977ce533f06 /compiler-rt/lib/tsan/dd/dd_rtl.cc | |
| parent | 7fbceb2a3f6553c8b27488bd1b09fb513ef3d627 (diff) | |
| download | bcm5719-llvm-b72bc2ec9c3f7acff3f7fe27ad656715ff83b37f.tar.gz bcm5719-llvm-b72bc2ec9c3f7acff3f7fe27ad656715ff83b37f.zip | |
tsan: deadlock detector: print 2 stacks per deadlock edge
llvm-svn: 204149
Diffstat (limited to 'compiler-rt/lib/tsan/dd/dd_rtl.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/dd/dd_rtl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/dd/dd_rtl.cc b/compiler-rt/lib/tsan/dd/dd_rtl.cc index aed9debef64..38716d5c3f1 100644 --- a/compiler-rt/lib/tsan/dd/dd_rtl.cc +++ b/compiler-rt/lib/tsan/dd/dd_rtl.cc @@ -45,8 +45,12 @@ static void ReportDeadlock(Thread *thr, DDReport *rep) { Printf("Thread %d locks mutex %llu while holding mutex %llu:\n", rep->loop[i].thr_ctx, rep->loop[i].mtx_ctx1, rep->loop[i].mtx_ctx0); PrintStackTrace(thr, rep->loop[i].stk[1]); + Printf("Mutex %llu was acquired here:\n", + rep->loop[i].mtx_ctx0); + PrintStackTrace(thr, rep->loop[i].stk[0]); } Printf("==============================\n"); + Die(); } Callback::Callback(Thread *thr) |

