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

Viktor Klang vklang at openjdk.org
Wed Dec 17 00:06:52 UTC 2025


On Tue, 16 Dec 2025 19:12:24 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:
> 
>   Relax orderings in push

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

> 1258:             ForkJoinTask<?>[] a = array;
> 1259:             int size = s - base + 1, m;
> 1260:             if (((a != null && a.length > size) || (a = growArray(a, s)) != null) &&

Instruction ordering reason to assign the size ahead of the `if`?  🤔 


            int m;
            if (((a != null && a.length > (s - base + 1)) || (a = growArray(a, s)) != null) &&

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

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


More information about the core-libs-dev mailing list