[jdk21u-dev] RFR: 8342765: RTM tests assume UnlockExperimentalVMOptions is disabled by default

Todd V. Jonker duke at openjdk.org
Mon Oct 21 22:58:53 UTC 2024


Distros with Graal integration will have `UnlockExperimentalVMOptions` enabled, causing several tests in this directory to fail:

* compiler/rtm/cli/TestRTMAbortThresholdOption.java
* compiler/rtm/cli/TestRTMLockingCalculationDelayOption.java
* compiler/rtm/cli/TestRTMLockingThresholdOption.java
* compiler/rtm/cli/TestRTMSpinLoopCountOption.java
* compiler/rtm/cli/TestUseRTMForStackLocksOptionOnUnsupportedConfig.java
* compiler/rtm/cli/TestUseRTMXendForLockBusyOption.java

This modified the tests to explicitly use `-XX:-UnlockExperimentalVMOptions` when they expecting that context.

Note that this directory of tests was removed by https://bugs.openjdk.org/browse/JDK-8329141 as part of JDK24.

Tested using a locally-built JDK+Graal distro, where these tests fails before the change and passes when its applied.

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

Commit messages:
 - RTM tests assume UnlockExperimentalVMOptions is disabled by default

Changes: https://git.openjdk.org/jdk21u-dev/pull/1073/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1073&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8342765
  Stats: 5 lines in 2 files changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1073.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1073/head:pull/1073

PR: https://git.openjdk.org/jdk21u-dev/pull/1073


More information about the jdk-updates-dev mailing list