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

Viktor Klang vklang at openjdk.org
Thu Jan 8 16:53:38 UTC 2026


On Thu, 8 Jan 2026 15:18:00 GMT, Doug Lea <dl at openjdk.org> wrote:

>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Change signalWork fencing; in-progress activation changes

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

> 1959:                             if (q.base == b) {            // else inconsistent
> 1960:                                 if (t == null) {
> 1961:                                     if (q.array == a) {   // else resized

@DougLea Do we have any good sense of how "far behind" a completed resize a worker can end up being (i.e. looking at an array that has been replaced already)? I'm just thinking if the rescanning is spending cycles looking at the wrong thing.

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

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


More information about the core-libs-dev mailing list