On Thu, Nov 20, 2008 at 9:33 PM, Frank Cameron > $ jruby SieveOfZakiya.rb
> Error, could not compile; pass -d or
> -J-Djruby.jit.logging.verbose=true for more details
>                    user     system      total        real
> primes up to 10000001:  10.529000   0.000000  10.529000 ( 10.528562)
> ...

$ jruby -J-Djruby.jit.logging.verbose=true SieveOfZakiya.rb
could not compile: SieveOfZakiya.rb because of: "Invalid method Code
length 78818 in class file SieveOfZakiya"
java.lang.ClassFormatError: Invalid method Code length 78818 in class
file SieveOfZakiya
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
	at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
	at org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:147)
	at org.jruby.Ruby.tryCompile(Ruby.java:494)
	at org.jruby.Ruby.tryCompile(Ruby.java:474)
	at org.jruby.Ruby.runNormally(Ruby.java:453)
	at org.jruby.Ruby.runFromMain(Ruby.java:337)
	at org.jruby.Main.run(Main.java:214)
	at org.jruby.Main.run(Main.java:100)
	at org.jruby.Main.main(Main.java:84)
                    user     system      total        real
primes up to 10000001:  10.125000   0.000000  10.125000 ( 10.125155)
...