[sanitizer] fix the deadlock detector build
llvm-svn: 204044
This commit is contained in:
parent
f01c094cdd
commit
e7846206e8
|
@ -355,7 +355,7 @@ void DD::Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath) {
|
|||
rep->loop[i].thr_ctx = link->tid;
|
||||
rep->loop[i].mtx_ctx0 = link0->id;
|
||||
rep->loop[i].mtx_ctx1 = link->id;
|
||||
rep->loop[i].stk = link->stk;
|
||||
rep->loop[i].stk[1] = link->stk;
|
||||
}
|
||||
pt->report_pending = true;
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ static void ReportDeadlock(Thread *thr, DDReport *rep) {
|
|||
for (int i = 0; i < rep->n; i++) {
|
||||
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);
|
||||
PrintStackTrace(thr, rep->loop[i].stk[1]);
|
||||
}
|
||||
Printf("==============================\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue