Commit dc44457
committed
Add a warning if join is called and JobManager is suspended
Currently there is a situation that is really hard to notice but quite
dangerous results. When the JobManager is suspended and one calls join()
on a Job this is a no-op and it returns silently without even try to
wait for the job as it could lead to deadlocks. Code using join in such
situation will likely fail in an random way depending on if the job has
already finished fast enough.
This now adds a warning whenever this situation occurs to having a
chance to be noticed and mitigated.1 parent 5373ee3 commit dc44457
File tree
3 files changed
+10
-0
lines changed- runtime/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs
3 files changed
+10
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1008 | 1015 | | |
1009 | 1016 | | |
1010 | 1017 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments