RFR: 8373118: Test java/lang/Thread/virtual/Starvation.java timed out [v28]
Viktor Klang
vklang at openjdk.org
Fri Jan 23 13:13:41 UTC 2026
On Wed, 21 Jan 2026 16:35:41 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:
>
> Try out different approach
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1303:
> 1301: U.putReferenceVolatile(this, ARRAY, newArray);
> 1302: if (unlock != 1)
> 1303: phase = unlock;
Not sure if it helps, but if we can piggyback on the volatile write to phase, then we could structure it like so:
if (unlock != 1) {
U.putReference(this, ARRAY, newArray);
phase = unlock;
} else {
U.putReferenceVolatile(this, ARRAY, newArray);
}
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2721138435
More information about the core-libs-dev
mailing list