Commit acd6e8a
committed
Only set locking thread if no interrupts
If the lock is acquired but we are immediately interrupted by
another thread, it will be unlocked while leaving the lockingThread
field set. This will cause all future locks by other fibers on that
thread to trigger a deadlock error, since the lock will appear to
have been acquired by a different fiber on that thread.
Patch by @yamam.
Fixes jruby#92181 parent 0303464 commit acd6e8a
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments