On Tue, 16 Dec 2025 19:12:24 GMT, Doug Lea <[email protected]> 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