RFR: 8373118: Test java/lang/Thread/virtual/Starvation.java timed out [v23]

Viktor Klang vklang at openjdk.org
Mon Jan 12 10:18:34 UTC 2026


On Sun, 11 Jan 2026 17:11:38 GMT, Doug Lea <dl at openjdk.org> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 33 additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into JDK-8373118
>  - reunify push; improve contention vs activation vs park balance
>  - Undo unrelated change
>  - Re-introduce acquiring array reads; re-arrange to rely on volatile base index
>  - Change signalWork fencing; in-progress activation changes
>  - Merge branch 'openjdk:master' into JDK-8373118
>  - Split external push
>  - Undo/redo ordering changes
>  - Strengthen some orderings
>  - Merge branch 'openjdk:master' into JDK-8373118
>  - ... and 23 more: https://git.openjdk.org/jdk/compare/18d2870a...f42d2475

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

> 2044:                     Thread.yield();          // reduce unproductive scanning
> 2045:                     for (int s = SPIN_WAITS; (idle = w.phase & IDLE) != 0 && --s != 0;)
> 2046:                         Thread.onSpinWait();

spinning _after_ yielding? 🤔

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

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


More information about the core-libs-dev mailing list