Commit c8fa76f
committed
Allow virtual thread factory to work with ForkJoinPool
ForkJoinWorkerThread extends Thread (platform) and cannot be virtual.
Fall back to a platform ManagedForkJoinWorkerThread instead of throwing
UnsupportedOperationException. The TCK expects ForkJoinPool to function
with virtual factories — the worker threads are platform but the pool
still operates correctly.
m>1 parent 628b663 commit c8fa76f
2 files changed
Lines changed: 15 additions & 6 deletions
File tree
- container/openejb-core/src
- main/java/org/apache/openejb/threads/impl
- test/java/org/apache/openejb/threads/impl
container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedThreadFactoryImpl.java
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
0 commit comments