Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902162

4 compiler/jvmci tests fail when running in Graal JIT mode and jtreg -agentvm option is used

    Details

    • Type: Bug
    • Status: New
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: jtreg4.2
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      There is weird issue observed with following 4 compiler/jvmci tests in case they are run in Graal JIT mode
      (flags "-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal")
      and jtreg is launched with -agentvm:

       compiler/jvmci/meta/StableFieldTest.java
       compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/HotSpotConstantReflectionProviderTest.java
       compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/MemoryAccessProviderTest.java
       compiler/jvmci/events/JvmciShutdownEventTest.java

      The error occurs during "@run driver jdk.test.lib.FileInstaller ..." and is "result: Error. Can't init module exports: module not found: jdk.internal.vm.ci"
       

      If '-agentvm' is not specified then no error happens.
      Changing "@run driver" to "@run main" also results in no error.
      This looks kind of strange and looks like something is going wrong with jtreg.

      Steps to reproduce:
      > jtreg -agentvm -vt -jdk:../build/linux-x64-debug.jdk/jdk-11/fastdebug
              -vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal"
              -dir:test/hotspot/jtreg compiler/jvmci/events/JvmciShutdownEventTest.java

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              epavlova Ekaterina Pavlova
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: