[lilliput-jdk21u:lilliput] RFR: 8329091: [Lilliput/JDK21] Fix tests after LM_LIGHTWEIGHT backports

Aleksey Shipilev shade at openjdk.org
Tue Mar 26 17:05:32 UTC 2024


On Tue, 26 Mar 2024 13:23:41 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> A few tests explicitely test LM_LIGHTWEIGHT locking-mode. In JDK22, LM_LIGHTWEIGHT became a non-experimental product option. Some tests that have been backported from JDK>=22 requires -XX:+UnlockExperimentalVMOptions in JDK21.
> 
> Testing:
>  - [x] tier1
>  - [ ] tier2

test/jdk/com/sun/jdi/EATests.java line 2002:

> 2000:         lockInflatedByContention = new XYVal(1, 1);
> 2001:         // Start thread that tries to enter lockInflatedByContention while the main thread owns it -> inflation
> 2002:         TestScaffold.newThread(() -> {

Is this neccessary?

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

PR Review Comment: https://git.openjdk.org/lilliput-jdk21u/pull/29#discussion_r1539746367


More information about the lilliput-dev mailing list