RFR: 8309974: some JVMCI tests fails when VM options include -XX:+EnableJVMCI

Doug Simon dnsimon at openjdk.org
Wed Jun 14 20:14:10 UTC 2023


This PR fixes a few JVMCI tests to run the `ClassFileInstaller` step with `@run main/othervm` instead of `@run driver` so that it inherits extra VM options passed to jtreg. This is required for these tests as they use JVMCI and module exports are needed when running `ClassFileInstaller` on the test class itself.

Thanks to @jonathan-gibbons for providing this solution.

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

Commit messages:
 - replace `@run driver` with `@run main/othervm` when running ClassFileInstaller to inherit VM options passed to jtreg

Changes: https://git.openjdk.org/jdk/pull/14476/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14476&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309974
  Stats: 4 lines in 3 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/14476.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14476/head:pull/14476

PR: https://git.openjdk.org/jdk/pull/14476


More information about the hotspot-dev mailing list