On Fri, 12 Dec 2025 16:44:21 GMT, Doug Lea <[email protected]> wrote:

> Changes signal filtering to avoid possible starvation

src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1434:

> 1432:         final int topLevelExec(ForkJoinTask<?> task, WorkQueue q,
> 1433:                                 int fifo, int qbase) {
> 1434:             int stolen = 1;

@DougLea It does seem a bit weird that stolen starts as 1 even if "task == 
null" (i.e. this method would return 1 for an invocation where task or q is 
null, which doesn't sounds right?)

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2615790553

Reply via email to