On Wed, 25 Nov 2026 14:13:37 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:
> 
>   Copy-edit; ensure parking status reset

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

> 3021:             if ((e & STOP) == 0L &&     // trigger stop
> 3022:                 ((ps = getAndBitwiseOrRunState(SHUTDOWN|STOP) & STOP)) 
> == 0L) {
> 3023:                 if ((ps & RS_LOCK) != 0L) {

@DougLea Missing parenthesis around the assignment to `ps` here I assume, since 
the test on line 3023 tests for RS_LOCK but it cannot ever be true since `ps` 
was assigned `& STOP` on the line above).

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

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

Reply via email to