[sanitizer] fix the deadlock detector build

llvm-svn: 204044
This commit is contained in:
Kostya Serebryany 2014-03-17 15:16:25 +00:00
parent f01c094cdd
commit e7846206e8
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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");
}