Skip to content

Instantly share code, notes, and snippets.

@enebo
Created November 1, 2019 20:55
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 enebo/0fdd13e1e971b510e27c3ebc7526fef0 to your computer and use it in GitHub Desktop.
Save enebo/0fdd13e1e971b510e27c3ebc7526fef0 to your computer and use it in GitHub Desktop.
jruby -Xcompile.invokedynamic -Xjit.threshold=0 -Xjit.logging -Xjit.logging.verbose -e 'def foo; end; foo'
2019-11-01T15:54:39.359-05:00 [main] ERROR Ruby : failed to compile target script: -e
org.jruby.compiler.NotCompilableException: failed to compile script -e
at org.jruby.ir.Compiler.execute(Compiler.java:61)
at org.jruby.ir.Compiler.execute(Compiler.java:30)
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
at org.jruby.Ruby.tryCompile(Ruby.java:838)
at org.jruby.Ruby.precompileCLI(Ruby.java:807)
at org.jruby.Ruby.runNormally(Ruby.java:769)
at org.jruby.Ruby.runNormally(Ruby.java:798)
at org.jruby.Ruby.runFromMain(Ruby.java:610)
at org.jruby.Main.doRunFromMain(Main.java:412)
at org.jruby.Main.internalRun(Main.java:304)
at org.jruby.Main.run(Main.java:234)
at org.jruby.Main.main(Main.java:206)
Caused by: java.lang.IllegalArgumentException: value null
at org.jruby.org.objectweb.asm.SymbolTable.addConstant(SymbolTable.java:501)
at org.jruby.org.objectweb.asm.SymbolTable.addBootstrapMethod(SymbolTable.java:1050)
at org.jruby.org.objectweb.asm.SymbolTable.addConstantInvokeDynamic(SymbolTable.java:905)
at org.jruby.org.objectweb.asm.MethodWriter.visitInvokeDynamicInsn(MethodWriter.java:1069)
at org.jruby.compiler.impl.SkinnyMethodAdapter.invokedynamic(SkinnyMethodAdapter.java:233)
at org.jruby.ir.targets.IRBytecodeAdapter7.invokeSelf(IRBytecodeAdapter7.java:153)
at org.jruby.ir.targets.JVMVisitor.compileCallCommon(JVMVisitor.java:1089)
at org.jruby.ir.targets.JVMVisitor.CallInstr(JVMVisitor.java:1052)
at org.jruby.ir.instructions.CallInstr.visit(CallInstr.java:162)
at org.jruby.ir.targets.JVMVisitor.visit(JVMVisitor.java:460)
at org.jruby.ir.targets.JVMVisitor.emitScope(JVMVisitor.java:247)
at org.jruby.ir.targets.JVMVisitor.emitScope(JVMVisitor.java:124)
at org.jruby.ir.targets.JVMVisitor.emitScriptBody(JVMVisitor.java:334)
at org.jruby.ir.targets.JVMVisitor.compileToBytecode(JVMVisitor.java:90)
at org.jruby.ir.Compiler.execute(Compiler.java:52)
... 11 more
2019-11-01T15:54:39.367-05:00 [main] INFO JITCompiler : method done jitting: Object foo at -e:0
system ~/work/jruby master * 1155%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment