tsan: better error message wording in deadlock reports
llvm-svn: 203109
This commit is contained in:
parent
178d599143
commit
69bd9ca91c
|
@ -42,7 +42,7 @@ static void ReportDeadlock(Thread *thr, DDReport *rep) {
|
|||
Printf("==============================\n");
|
||||
Printf("WARNING: lock-order-inversion (potential deadlock)\n");
|
||||
for (int i = 0; i < rep->n; i++) {
|
||||
Printf("Thread %d locks mutex %llu under mutex %llu:\n",
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue