Skip to content

Instantly share code, notes, and snippets.

@headius
Created March 16, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/4405fae8ffbb6de778443582bfe36655 to your computer and use it in GitHub Desktop.
Save headius/4405fae8ffbb6de778443582bfe36655 to your computer and use it in GitHub Desktop.
Graal JIT error during benchmark of JRuby+Rails
[Use -Dgraal.LogFile=<path> to redirect Graal log output to a file.]
Thread[JVMCI CompilerThread2,9,system]: Compilation of Users.headius.projects.jruby.lib.ruby.stdlib.monitor.RUBY$method$broadcast$0(ThreadContext, StaticScope, IRubyObject, Block, RubyModule, String) failed:
org.graalvm.compiler.graph.GraalGraphError: Invalid frame state 87|FrameState@-3[AFTER_BCI]
at node: 2312|Read
at org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.raiseInvalidFrameStateError(HotSpotDebugInfoBuilder.java:122)
at org.graalvm.compiler.hotspot.HotSpotDebugInfoBuilder.computeFrameForState(HotSpotDebugInfoBuilder.java:92)
at org.graalvm.compiler.core.gen.DebugInfoBuilder.build(DebugInfoBuilder.java:101)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.stateForWithExceptionEdge(NodeLIRBuilder.java:748)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.stateFor(NodeLIRBuilder.java:740)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.state(NodeLIRBuilder.java:729)
at org.graalvm.compiler.nodes.memory.ReadNode.generate(ReadNode.java:79)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.emitNode(NodeLIRBuilder.java:473)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.doRoot(NodeLIRBuilder.java:464)
at org.graalvm.compiler.core.gen.NodeLIRBuilder.doBlock(NodeLIRBuilder.java:379)
at org.graalvm.compiler.core.LIRGenerationPhase.emitBlock(LIRGenerationPhase.java:81)
at org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:71)
at org.graalvm.compiler.core.LIRGenerationPhase.run(LIRGenerationPhase.java:46)
at org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:117)
at org.graalvm.compiler.lir.phases.LIRPhase.apply(LIRPhase.java:109)
at org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR0(LIRCompilerBackend.java:139)
at org.graalvm.compiler.core.gen.LIRCompilerBackend.emitLIR(LIRCompilerBackend.java:102)
at org.graalvm.compiler.core.gen.LIRCompilerBackend.emitBackEnd(LIRCompilerBackend.java:82)
at org.graalvm.compiler.core.target.Backend.emitBackEnd(Backend.java:262)
at org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:145)
at org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:129)
at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:185)
at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:198)
at org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:182)
at org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:99)
at org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:172)
at org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:331)
at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:138)
at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:105)
at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:627)
To disable compilation failure notifications, set CompilationFailureAction to Silent (e.g., -Dgraal.CompilationFailureAction=Silent).
To print a message for a compilation failure without retrying the compilation, set CompilationFailureAction to Print (e.g., -Dgraal.CompilationFailureAction=Print).
Retrying compilation of Users.headius.projects.jruby.lib.ruby.stdlib.monitor.RUBY$method$broadcast$0(ThreadContext, StaticScope, IRubyObject, Block, RubyModule, String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment