On Sun, 22 Nov 2026 20:41:34 GMT, Doug Lea <[email protected]> wrote:
>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request with a new target base due to a merge
> or a rebase. The pull request now contains 211 commits:
>
> - Merge branch 'openjdk:master' into JDK-8373118
> - Refactor tryTerminate, regularlize constructions, rewrite design doc
> - Use adaptation of previous interference check; long base
> - restore lazySUbmit semantics
> - Repair clobbered line; other misc tunings
> - Revert lazySubmit; add non-public randomSubmit; other misc tunings
> - Merge branch 'openjdk:master' into JDK-8373118
> - Rondomize lazySubmit; balance costs across use cases
> - Merge branch 'openjdk:master' into JDK-8373118
> - Re-remove helpSignalWork
> - ... and 201 more: https://git.openjdk.org/jdk/compare/78bf06f4...cd9ab7ab
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1267:
> 1265: U.putIntRelease(this, TOP, s + 1);
> 1266: U.putReferenceVolatile(a, slotOffset(s & m), task);
> 1267: if (U.getReferenceVolatile(a, slotOffset((s - 1) & m))
> != null) {
@DougLea @AlanBateman We might have a potential issue if we have a fresh
ForkJoinPool, and the first task is submitted using `lazySubmit` (no signal),
then the second task is submitted using `execute` which will lead to no signal
since theres a task ahead of it. Thoughts?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r4681260005