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

Viktor Klang vklang at openjdk.org
Thu Feb 5 12:23:43 UTC 2026


On Wed, 4 Feb 2026 14:38:03 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 43 additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into JDK-8373118
>  - reduce interference after stalls
>  - Avoid yield, for performance test
>  - Don't oversignal LIFO
>  - Try out different approach
>  - Simplify scan mode control by moving and reworking topLevelExec and throwing on trim
>  - Another set of contend vs deactivate vs park tradeoffs
>  - Fix missing undo
>  - Merge branch 'openjdk:master' into JDK-8373118
>  - Use explicit store fences or atomics
>  - ... and 33 more: https://git.openjdk.org/jdk/compare/04656767...7ae93ed7

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

> 2028:                 int phase = U.getInt(w, WorkQueue.PHASE);
> 2029:                 long sp = (phase + NEXTIDLE) & LMASK, pc = ctl;
> 2030:                 U.putInt(w, WorkQueue.PHASE, phase | IDLE);

So the idea here is to potentially delay the store?

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

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


More information about the core-libs-dev mailing list