On Tue, 9 Jun 2026 12:30:46 GMT, Viktor Klang <[email protected]> wrote:

> Addresses a case where a `null`-value can sneak in to a reference chain and 
> lead to a live lock. Introduces a regression test which stochastically 
> reproduces the error.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.java
 line 836:

> 834:                         q.prev == p) {
> 835:                         if (s != null)
> 836:                             p.casNext(q, s);         // OK if fails

Drive-by: Indent the comments to match here and in the test?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31436#discussion_r3380817324

Reply via email to