Something in ruby_parser is too long to compile, but doesn't get broken apart
correctly
---------------------------------------------------------------------------------------
Key: JRUBY-2621
URL: http://jira.codehaus.org/browse/JRUBY-2621
Project: JRuby
Issue Type: Bug
Components: Compiler
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1.3
This will obviously affect performance of ruby_parser quite a bit:
{noformat}
~/NetBeansProjects/jruby ➔ jruby -J-Djruby.jit.logging.verbose=true -X+C
--server -rubygems -rbenchmark -e "gem :ruby_parser; require 'ruby_parser';
5.times {puts Benchmark.measure
{RubyParser.new.parse(File.read('lib/ruby/1.8/rdoc/parsers/parse_rb.rb'))}}"
could not compile:
/Users/headius/NetBeansProjects/jruby/lib/ruby/gems/1.8/gems/ruby_parser-1.0.0/lib/ruby_parser.rb
because of: "Invalid method Code length 82165 in class file
ruby/Users/headius/NetBeansProjects/jruby/lib/ruby/gems/$1_dot_8/gems/ruby_parser_minus_1_dot_0_dot_0/lib/ruby_parser"
java.lang.ClassFormatError: Invalid method Code length 82165 in class file
ruby/Users/headius/NetBeansProjects/jruby/lib/ruby/gems/$1_dot_8/gems/ruby_parser_minus_1_dot_0_dot_0/lib/ruby_parser
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:21)
at
org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:159)
at org.jruby.Ruby.tryCompile(Ruby.java:464)
at org.jruby.Ruby.compileAndLoadFile(Ruby.java:2041)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:56)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:320)
at org.jruby.runtime.load.LoadService.require(LoadService.java:346)
at org.jruby.RubyKernel.require(RubyKernel.java:769)
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email