applications/ctw/modules/java_xml.java run in Graal as JIT mode fails with
There were 1 errors:[
java.lang.Error: modules_java_xml_0: failed during compilation of class #713 : com/sun/org/apache/xerces/internal/dom/DocumentImpl
at sun.hotspot.tools.ctw.CtwRunner.startCtwforAllClasses(CtwRunner.java:217)
at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:119)
at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
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:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:835)
java.lang.AssertionError: There were 1 errors:[{modules_java_xml_0: failed during compilation of class #713 : com/sun/org/apache/xerces/internal/dom/DocumentImpl}]
at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:134)
at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
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:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:835)
Looking in modules_java_xml_0.err I see
org.graalvm.compiler.graph.GraalGraphError: Invalid frame state 39|FrameState@-4[AFTER_EXCEPTION_BCI]
at node: 658|ForeignCall#new_instance_or_null(KlassPointer)Object
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.raiseInvalidFrameStateError(HotSpotDebugInfoBuilder.java:122)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.computeFrameForState(HotSpotDebugInfoBuilder.java:92)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.DebugInfoBuilder.build(DebugInfoBuilder.java:101)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.stateForWithExceptionEdge(NodeLIRBuilder.java:757)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.stateFor(NodeLIRBuilder.java:749)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.state(NodeLIRBuilder.java:738)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.nodes.extended.ForeignCallNode.generate(ForeignCallNode.java:171)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.emitNode(NodeLIRBuilder.java:482)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.doRoot(NodeLIRBuilder.java:473)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.doBlock(NodeLIRBuilder.java:376)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.emitBlock(LIRGenerationPhase.java:85)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:75)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:46)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:117)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:109)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR0(LIRCompilerBackend.java:150)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR(LIRCompilerBackend.java:113)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitBackEnd(LIRCompilerBackend.java:83)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.target.Backend.emitBackEnd(Backend.java:280)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:145)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:129)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:211)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:229)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:190)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:98)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:177)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:344)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:141)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:108)
at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:524)
There were 1 errors:[
java.lang.Error: modules_java_xml_0: failed during compilation of class #713 : com/sun/org/apache/xerces/internal/dom/DocumentImpl
at sun.hotspot.tools.ctw.CtwRunner.startCtwforAllClasses(CtwRunner.java:217)
at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:119)
at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
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:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:835)
java.lang.AssertionError: There were 1 errors:[{modules_java_xml_0: failed during compilation of class #713 : com/sun/org/apache/xerces/internal/dom/DocumentImpl}]
at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:134)
at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
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:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:835)
Looking in modules_java_xml_0.err I see
org.graalvm.compiler.graph.GraalGraphError: Invalid frame state 39|FrameState@-4[AFTER_EXCEPTION_BCI]
at node: 658|ForeignCall#new_instance_or_null(KlassPointer)Object
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.raiseInvalidFrameStateError(HotSpotDebugInfoBuilder.java:122)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.computeFrameForState(HotSpotDebugInfoBuilder.java:92)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.DebugInfoBuilder.build(DebugInfoBuilder.java:101)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.stateForWithExceptionEdge(NodeLIRBuilder.java:757)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.stateFor(NodeLIRBuilder.java:749)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.state(NodeLIRBuilder.java:738)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.nodes.extended.ForeignCallNode.generate(ForeignCallNode.java:171)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.emitNode(NodeLIRBuilder.java:482)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.doRoot(NodeLIRBuilder.java:473)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.NodeLIRBuilder.doBlock(NodeLIRBuilder.java:376)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.emitBlock(LIRGenerationPhase.java:85)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:75)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:46)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:117)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:109)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR0(LIRCompilerBackend.java:150)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR(LIRCompilerBackend.java:113)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.gen.LIRCompilerBackend.emitBackEnd(LIRCompilerBackend.java:83)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.target.Backend.emitBackEnd(Backend.java:280)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:145)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:129)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:211)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:229)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:190)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:98)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:177)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:344)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:141)
at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:108)
at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:524)
- duplicates
-
JDK-8221598 Update Graal
- Resolved