forked from OSchip/llvm-project
tsan: remove unbalanced mutex unlock
The mutex is now unlocked by the scoped Lock object. Differential Revision: https://reviews.llvm.org/D107266
This commit is contained in:
parent
59198d062f
commit
03372e72d3
|
@ -204,7 +204,6 @@ void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) {
|
|||
ctx->dd->MutexAfterLock(&cb, &s->dd, true, flagz & MutexFlagTryLock);
|
||||
}
|
||||
mid = s->GetId();
|
||||
s->mtx.Unlock();
|
||||
}
|
||||
if (report_double_lock)
|
||||
ReportMutexMisuse(thr, pc, ReportTypeMutexDoubleLock, addr, mid);
|
||||
|
|
Loading…
Reference in New Issue