Re: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Charles Oliver Nutter
Peter K Chan wrote: You are fast! :) Fixed in r6597. Thanks so much to Peter for finding this effect. We're a lot better for it, and it has given me some insight into how to solve remaining thread safety issues in the call site and improve performance overall. FWIW, I added a not-altogethe

Re: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Charles Oliver Nutter
Peter K Chan wrote: You are fast! :) http://jira.codehaus.org/browse/JRUBY-2477 It will be fixed on trunk momentarily. It does introduce a small perf hit for polymorphic method calls, but if we add a sprinkle of profiling into the call sites we can have polymorphic calls just fall back on no

RE: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Peter K Chan
] ClassCastException in JRuby 1.1.1 Charles Oliver Nutter wrote: > Charles Oliver Nutter wrote: >> Peter K Chan wrote: >>> I am receiving some occasional ClassCastException in my JRuby 1.1.1 app. >> ... >>> Since the exception directly kills the thread, I don't hav

Re: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: Charles Oliver Nutter wrote: Peter K Chan wrote: I am receiving some occasional ClassCastException in my JRuby 1.1.1 app. ... Since the exception directly kills the thread, I don't have a Ruby stack trace to guess what piece of Ruby code caused the exception.

Re: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: Peter K Chan wrote: I am receiving some occasional ClassCastException in my JRuby 1.1.1 app. ... Since the exception directly kills the thread, I don't have a Ruby stack trace to guess what piece of Ruby code caused the exception. Full Java stack trace is att

Re: [jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Charles Oliver Nutter
Peter K Chan wrote: I am receiving some occasional ClassCastException in my JRuby 1.1.1 app. ... Since the exception directly kills the thread, I don't have a Ruby stack trace to guess what piece of Ruby code caused the exception. Full Java stack trace is attached. Any idea what the pro

[jruby-dev] ClassCastException in JRuby 1.1.1

2008-04-29 Thread Peter K Chan
I am receiving some occasional ClassCastException in my JRuby 1.1.1 app. Exception in thread "CPU2" java.lang.ClassCastException: org.jruby.RubyString cannot be cast to org.jruby.RubySymbol at org.jruby.RubySymbolInvoker$to_s_method_0_0.call(Unknown Source) at org.jruby.internal.ru