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

[Graal] java/util/concurrent/tck/JSR166TestCase set too restrictive SM for Graal

    Details

      Description

      Bunch of tests fails in Graal as a JIT mode when "-ea" flags is used.

      java/util/concurrent/tck/JSR166TestCase.java
      Dumping debug output in /home/katya/work/JavaSE/Hotspot/ws/hs10.graal.new/JTwork/scratch/dumps/1505258220489
      Thread[JVMCI CompilerThread7,9,system]: Compilation of java.lang.StringLatin1.hashCode(byte[]) failed: org.graalvm.compiler.graph.GraalGr
      aphError: java.lang.ExceptionInInitializerError
              at node: 106|ForeignCall#OSR_migration_end(long)void
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.gen.NodeLIRBuilder.doBlock(NodeLIRBuilder.java:366)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.LIRGenerationPhase.emitBlock(LIRGenerationPhase.java:79)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:69)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:44)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:115)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:107)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.GraalCompiler.emitLIR0(GraalCompiler.java:312)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.GraalCompiler.emitLIR(GraalCompiler.java:276)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.GraalCompiler.emitBackEnd(GraalCompiler.java:256)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:173)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:158)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:189)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:202)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:169)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:94)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:165)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:317)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:142)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:108)
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:437)
      Caused by: java.lang.ExceptionInInitializerError
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.stubs.ForeignCallStub.createTargetCall(ForeignCallStub.java:277)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.stubs.ForeignCallStub.getGraph(ForeignCallStub.java:238)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.stubs.Stub.buildCompilationResult(Stub.java:220)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.stubs.Stub.getCode(Stub.java:196)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.HotSpotForeignCallLinkageImpl.finalizeAddress(HotSpotForeignCallLinkageImpl.java:245)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProviderImpl.lookupForeignCall(HotSpotForeignCallsProviderImpl.java:171)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProviderImpl.lookupForeignCall(HotSpotForeignCallsProviderImpl.java:57)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.nodes.extended.ForeignCallNode.generate(ForeignCallNode.java:167)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.gen.NodeLIRBuilder.emitNode(NodeLIRBuilder.java:455)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.gen.NodeLIRBuilder.doRoot(NodeLIRBuilder.java:445)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.core.gen.NodeLIRBuilder.doBlock(NodeLIRBuilder.java:362)
              ... 19 more
      Caused by: java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.graph.NodeClass.get(NodeClass.java:123)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.graph.NodeClass.create(NodeClass.java:107)
              at jdk.internal.vm.compiler@10-ea/org.graalvm.compiler.hotspot.nodes.StubForeignCallNode.<clinit>(StubForeignCallNode.java:55)
              ... 30 more

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: