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

[Graal] Aot tests intermittently fail with "Provider org.graalvm.compiler.hotspot.EconomyCompilerConfigurationFactory could not be instantiated" when Graal is used as a JIT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • 10

      Aot tests run with Graal as a JIT intermittently fail with


      Exception in thread "main" java.util.ServiceConfigurationError: org.graalvm.compiler.hotspot.CompilerConfigurationFactory: Provider org.graalvm.compiler.hotspot.EconomyCompilerConfigurationFactory could not be instantiated
              at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:581)
              at java.base/java.util.ServiceLoader.access$100(ServiceLoader.java:390)
              at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:799)
              at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721)
              at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1389)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.serviceprovider.GraalServices$1$1.next(GraalServices.java:94)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilerConfigurationFactory.getAllCandidates(CompilerConfigurationFactory.java:150)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilerConfigurationFactory.selectFactory(CompilerConfigurationFactory.java:189)
              at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:477)
              at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:337)
              at jdk.aot/jdk.tools.jaotc.Main.main(Main.java:315)
      Caused by: java.lang.AssertionError: org.graalvm.compiler.hotspot.EconomyCompilerConfigurationFactory cannot have the same selector as org.graalvm.compiler.hotspot.EconomyCompilerConfigurationFactory: economy
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilerConfigurationFactory.checkAndAddNewFactory(CompilerConfigurationFactory.java:137)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilerConfigurationFactory.<init>(CompilerConfigurationFactory.java:76)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.EconomyCompilerConfigurationFactory.<init>(EconomyCompilerConfigurationFactory.java:37)
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
              at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:777)
              ... 8 more



      Steps to reproduce:
      > build hs10
      > jtreg -vt -k:\!ignore -jdk:TESTED_JDK_fastdebug -dir:hotspot/test
       -javaoptions:"-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.compiler=graal"
        compiler/aot/calls/fromAot/AotInvokeInterface2AotTest.java

            iveresov Igor Veresov
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: