Repository navigation
Commit 680d702
Make Context.doDispose() less deadlock-prone
We only need to hold the lock for the duration of the disposed flag
check; holding it for the entirety of the disposal operation could
deadlock in some circumstances, such as when context.dispose() is
called from within a WindowEvent listener's windowClosing method.
As per scijava/scijava-common@5dba100.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 7f4e5fa commit 680d702
1 file changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
288 | 301 | | |
289 | | - | |
| 302 | + | |
290 | 303 | | |
291 | | - | |
| 304 | + | |
292 | 305 | | |
293 | 306 | | |
294 | 307 | | |
295 | 308 | | |
296 | 309 | | |
297 | | - | |
298 | | - | |
299 | 310 | | |
300 | 311 | | |
301 | 312 | | |
| |||
0 commit comments