On Mon, 18 May 2026 07:12:46 GMT, Per Minborg <[email protected]> wrote:

> This PR proposes to fix a race where `release.countDown()` previously could 
> win before the interrupt is observed
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

test/jdk/java/lang/LazyConstant/LazyConstantTest.java line 345:

> 343:         try {
> 344:             assertTrue(interruptOccured.await(TIME_OUT_S, 
> TimeUnit.SECONDS));
> 345:         } finally {

I'd put all the main-thread asserts post-creation of `t` in the try-finally, so 
that t.join(…) is ensured (so `t` doesn't leak if the test fails)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31187#discussion_r3281521558

Reply via email to