mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 06:06:06 +00:00
sanitizer_common: fix deadlock detector output
Print PC of the previous lock, not the current one. The current one will be printed during unwind. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112533
This commit is contained in:
parent
1c2e249f93
commit
d53abf834c
@ -174,7 +174,7 @@ struct InternalDeadlockDetector {
|
||||
if (max_idx != MutexInvalid && !mutex_can_lock[max_idx][type]) {
|
||||
Printf("%s: internal deadlock: can't lock %s under %s mutex\n", SanitizerToolName,
|
||||
mutex_meta[type].name, mutex_meta[max_idx].name);
|
||||
PrintMutexPC(pc);
|
||||
PrintMutexPC(locked[max_idx].pc);
|
||||
CHECK(0);
|
||||
}
|
||||
locked[type].seq = ++sequence;
|
||||
|
Loading…
x
Reference in New Issue
Block a user