Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-51123: Fix deadlock in CpsFlowExecution
A deadlock can arise if multiple threads tries to access storage simultaneously while one of them doing it from a synchronized method. The cause is that timing operation also tries to get the instance lock from inside the storage r/w lock. Solution is to change the order of locking by having the timing object wrapping the call to the r/w storage lock instead of the opposite.
- Loading branch information
Showing
1 changed file
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters