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

[Graal] serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java fails with Graal in Xcomp mode

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b25

      Backports

        Description

        serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java fails when running with
        "-Xcomp -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal" flags.

        The cause is because Graal is getting initialized somewhere between
        ModuleLayer.boot().modules() and getModulesJVMTI() calls.
        As result getModulesJVMTI() returns 2 more additional modules jdk.proxy1 and jdk.proxy2 which
        are dynamically created during Graal initialization.

        To reproduce the issue you can compare output of
        "java -verbose:module -version" and
        "java -Xcomp -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal -verbose:module -version"

        To run serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java do
        > jtreg -vt -k:\!ignore -jdk:hs10 -dir:test/hotspot/jtreg -javaoptions:"-Xcomp -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal" serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                epavlova Ekaterina Pavlova
                Reporter:
                epavlova Ekaterina Pavlova
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: