Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent endless loop in lock cycle detection #1510
This change prevents an endless loop in: ReentrantCycleDetectingLock.addAllLockIdsAfter() For reasons that are not yet clear, according to CycleDetectingLockFactory.locksOwnedByThread and ReentrantCycleDetectingLock.lockOwnerThread, a thread both owns a lock and waits on that same lock. This leads to an endless loop in the cycle detection. The change adds a workaround, forcing the cycle detection to exit if the above condition is met.
- Loading branch information