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 346:

> 344:             assertTrue(interruptOccured.await(TIME_OUT_S, 
> TimeUnit.SECONDS));
> 345:         } finally {
> 346:             release.countDown();

Is this `countDown` still needed? The interupt makes the `release.await` bail 
out, right?

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

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

Reply via email to