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

[Graal] Introduce EagerJVMCI flag to force eager JVMCI initialization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b04

      Description

      Introduce EagerJVMCI flag to force eager JVMCI initialization.

      Right now JVMCI/Graal initialization is triggered by application code flow.
      As result tests which provokes some method compilation and expects them
      to be compiled in some reasonable time could fail.
      This is for example the case for tests which use WB API.

      Impacted tests:
       compiler/rangechecks/TestRangeCheckSmearing.java
         java.lang.RuntimeException: static int compiler.rangechecks.TestRangeCheckSmearing.m1(int[],int,boolean) not compiled
      at compiler.rangechecks.TestRangeCheckSmearing.doTest(TestRangeCheckSmearing.java:382)
      at compiler.rangechecks.TestRangeCheckSmearing.doTests(TestRangeCheckSmearing.java:423)
      at compiler.rangechecks.TestRangeCheckSmearing.main(TestRangeCheckSmearing.java:329)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

       compiler/uncommontrap/Test8009761.java
        java.lang.RuntimeException: static java.lang.Object compiler.uncommontrap.Test8009761.m3(boolean,boolean) not compiled
      at compiler.uncommontrap.Test8009761.main(Test8009761.java:271)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

      compiler/whitebox/ForceNMethodSweepTest.java
         java.lang.RuntimeException: private compiler.whitebox.SimpleTestCaseHelper(java.lang.Object,long) throws java.lang.Exception must be osr_compiled
      at compiler.whitebox.CompilerWhiteBoxTest.checkCompiled(CompilerWhiteBoxTest.java:264)
      at compiler.whitebox.ForceNMethodSweepTest.test(ForceNMethodSweepTest.java:73)
      at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:176)
      at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:135)
      at compiler.whitebox.ForceNMethodSweepTest.main(ForceNMethodSweepTest.java:50)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kvn Vladimir Kozlov
                Reporter:
                epavlova Ekaterina Pavlova
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: