Skip to content

Commit

Permalink
tsan: remove unbalanced mutex unlock
Browse files Browse the repository at this point in the history
The mutex is now unlocked by the scoped Lock object.

Differential Revision: https://reviews.llvm.org/D107266
  • Loading branch information
dvyukov committed Aug 2, 2021
1 parent 59198d0 commit 03372e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 03372e7

Please sign in to comment.