Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/com/google/inject/internal/CycleDetectingLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ private ListMultimap<Thread, ID> detectPotentialLocksCycle() {
// owner thread depends on current thread, cycle detected
return potentialLocksCycle;
}
// Its possible the lock owner thread has not removed itself yet from the waiting-on-lock list.
// So we remove it here, to prevent an endless loop. See #1510.
if (lockOwnerWaitingOn == this) {
lockThreadIsWaitingOn.remove(this.lockOwnerThread);
}
}
// no dependency path from an owner thread to a current thread
return ImmutableListMultimap.of();
Expand Down