RFR: 8373118: Test java/lang/Thread/virtual/Starvation.java timed out [v22]
Viktor Klang
vklang at openjdk.org
Thu Jan 8 23:41:30 UTC 2026
On Thu, 8 Jan 2026 18:52:32 GMT, Doug Lea <dl at openjdk.org> wrote:
>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request incrementally with two additional commits since the last revision:
>
> - Undo unrelated change
> - Re-introduce acquiring array reads; re-arrange to rely on volatile base index
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1261:
> 1259: if (U.getReferenceAcquire(a, slotOffset(m & (s - 1))) == null &&
> 1260: pool != null)
> 1261: pool.signalWork(this, s); // may have appeared empty
@DougLea I really like how push turned out here, it's arguably one of the most elegant versions of this method.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2674262607
More information about the core-libs-dev
mailing list