Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8269745

[JVMCI] restore original qualified exports to Graal

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b30

      Backports

        Description

        The changes to src/jdk.internal.vm.ci/share/classes/module-info.java in JDK-8267112 broke the use case of running Graal-optimized Truffle on OracleJDK (https://www.graalvm.org/reference-manual/js/RunOnJDK/):

        Exception in thread "main" java.lang.IllegalAccessError: class org.graalvm.libgraal.LibGraal (in module jdk.internal.vm.compiler) cannot access class jdk.vm.ci.hotspot.HotSpotJVMCIRuntime (in module jdk.internal.vm.ci) because module jdk.internal.vm.ci does not export jdk.vm.ci.hotspot to module jdk.internal.vm.compiler
                at jdk.internal.vm.compiler/org.graalvm.libgraal.LibGraal.<clinit>(LibGraal.java:49)
                at jdk.internal.vm.compiler/org.graalvm.compiler.truffle.runtime.hotspot.libgraal.LibGraalTruffleRuntimeAccess.getPriority(LibGraalTruffleRuntimeAccess.java:44)
                at org.graalvm.truffle/com.oracle.truffle.api.Truffle.selectTruffleRuntimeAccess(Truffle.java:89)

        Restoring the qualified exports resolves this problem.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kvn Vladimir Kozlov
                Reporter:
                dnsimon Douglas Simon
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: