RFR: 8259928: compiler/{aot,jvmci} tests fail with -Xint
Aleksey Shipilev
shade at openjdk.java.net
Wed Jan 20 08:26:53 UTC 2021
On Tue, 19 Jan 2021 19:29:09 GMT, Igor Ignatyev <iignatyev at openjdk.org> wrote:
> alternative if we change hotspot to disable jvmci flags when one specifies `Xint` or reports them as conflicted, then your changes would be fine.
If you run `compiler/jvmci` or `compiler/aot` tests with `-Xint`, then VM would already say:
$ CONF=linux-x86_64-server-fastdebug make images run-test TEST=compiler/aot TEST_VM_OPTS=-Xint
...
OpenJDK 64-Bit Server VM warning: JVMCI Compiler disabled due to -Xint.
Exception in thread "main" java.lang.Error: The EnableJVMCI VM option must be true (i.e., -XX:+EnableJVMCI) to use JVMCI
at jdk.internal.vm.ci/jdk.vm.ci.services.Services.checkJVMCIEnabled(Services.java:83)
at jdk.internal.vm.ci/jdk.vm.ci.services.Services.getSavedProperties(Services.java:91)
at jdk.internal.vm.ci/jdk.vm.ci.services.Services.getSavedProperty(Services.java:123)
at jdk.internal.vm.ci/jdk.vm.ci.common.InitTimer.isEnabled(InitTimer.java:76)
at jdk.internal.vm.ci/jdk.vm.ci.common.InitTimer.timer(InitTimer.java:63)
at jdk.internal.vm.compiler at 17-internal/org.graalvm.compiler.hotspot.HotSpotGraalOptionValues.parseOptions(HotSpotGraalOptionValues.java:102)
at jdk.internal.vm.compiler at 17-internal/org.graalvm.compiler.hotspot.HotSpotGraalOptionValues.initializeOptions(HotSpotGraalOptionValues.java:156)
at jdk.internal.vm.compiler at 17-internal/org.graalvm.compiler.hotspot.HotSpotGraalOptionValues.defaultOptions(HotSpotGraalOptionValues.java:84)
at jdk.aot at 17-internal/jdk.tools.jaotc.Main.run(Main.java:173)
at jdk.aot at 17-internal/jdk.tools.jaotc.Main.run(Main.java:136)
at jdk.aot at 17-internal/jdk.tools.jaotc.Main.main(Main.java:92)
It seems to me that using AOT implies using JVMCI?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2132
More information about the hotspot-compiler-dev
mailing list