[jruby-dev] List of optimization to-dos

2008-04-29 Thread Charles Oliver Nutter
Here's a list of optimization to-dos I have been gathering while auditing the compiler. Optimizations to make: - Literal array construction to repeatedly call "filler" methods rather than populating array inline (for >= 6 elements) - Expand valueXdepthY versions of scope methods - only set fi

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

[jruby-dev] [jira] Created: (JRUBY-2478) InlineCachingCallSite perf degradation due to JRUBY-2477 fix

2008-04-29 Thread Charles Oliver Nutter (JIRA)
InlineCachingCallSite perf degradation due to JRUBY-2477 fix Key: JRUBY-2478 URL: http://jira.codehaus.org/browse/JRUBY-2478 Project: JRuby Issue Type: Bug Components: Pe

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
You are fast! :) http://jira.codehaus.org/browse/JRUBY-2477 Thanks, Charles. Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Oliver Nutter Sent: Wednesday, April 30, 2008 1:06 AM To: [email protected] Subject: Re: [jruby-dev] ClassCa

[jruby-dev] [jira] Created: (JRUBY-2477) ClassCastException org.jruby.RubyString cannot be cast to org.jruby.RubySymbol

2008-04-29 Thread Peter K Chan (JIRA)
ClassCastException org.jruby.RubyString cannot be cast to org.jruby.RubySymbol -- Key: JRUBY-2477 URL: http://jira.codehaus.org/browse/JRUBY-2477 Project: JRuby Issu

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

[jruby-dev] [jira] Created: (JRUBY-2476) Gem errors

2008-04-29 Thread Caleb Land (JIRA)
Gem errors -- Key: JRUBY-2476 URL: http://jira.codehaus.org/browse/JRUBY-2476 Project: JRuby Issue Type: Bug Components: Miscellaneous Affects Versions: JRuby 1.1.1 Environment: Mac OS X 1.5.2, Java 1.5.0_13

[jruby-dev] [jira] Created: (JRUBY-2475) JRuby and Builder::XmlMarkup (strange File interaction)

2008-04-29 Thread Nivaldo Fernandes (JIRA)
JRuby and Builder::XmlMarkup (strange File interaction) --- Key: JRUBY-2475 URL: http://jira.codehaus.org/browse/JRUBY-2475 Project: JRuby Issue Type: Bug Components: Application

[jruby-dev] [jira] Created: (JRUBY-2474) --debug for interpreted mode, --jdb for jdb

2008-04-29 Thread Martin Krauskopf (JIRA)
--debug for interpreted mode, --jdb for jdb --- Key: JRUBY-2474 URL: http://jira.codehaus.org/browse/JRUBY-2474 Project: JRuby Issue Type: Improvement Components: Miscellaneous Affects Ve

[jruby-dev] [jira] Created: (JRUBY-2473) Rails and OpenSSL configuration issue

2008-04-29 Thread Nick Sieger (JIRA)
Rails and OpenSSL configuration issue - Key: JRUBY-2473 URL: http://jira.codehaus.org/browse/JRUBY-2473 Project: JRuby Issue Type: Bug Components: JRuby-extras Affects Versions: JRuby 1.1.1

[jruby-dev] [jira] Created: (JRUBY-2472) incorrect block arguments created by each_with_index on active record model

2008-04-29 Thread Stuart Ellidge (JIRA)
incorrect block arguments created by each_with_index on active record model Key: JRUBY-2472 URL: http://jira.codehaus.org/browse/JRUBY-2472 Project: JRuby Issue Ty

Re: [jruby-dev] Java exceptions from @JRubyMethods

2008-04-29 Thread Charles Oliver Nutter
Ola Bini wrote: Charles Oliver Nutter wrote: Ola Bini wrote: Hi, Now that I'm working through all the lovely method bindings in OpenSSL it dawns on me that it's actually a bit of a problem to have Java exceptions thrown. Could we disallow this with a check in @JRubyMethod? I think that woul

[jruby-dev] [jira] Created: (JRUBY-2471) Using X509 Certificate in DRb SSL Config throws an exception

2008-04-29 Thread Mikko Ruohola (JIRA)
Using X509 Certificate in DRb SSL Config throws an exception Key: JRUBY-2471 URL: http://jira.codehaus.org/browse/JRUBY-2471 Project: JRuby Issue Type: Bug Components: Op

Re: [jruby-dev] Java exceptions from @JRubyMethods

2008-04-29 Thread Ola Bini
Charles Oliver Nutter wrote: Ola Bini wrote: Hi, Now that I'm working through all the lovely method bindings in OpenSSL it dawns on me that it's actually a bit of a problem to have Java exceptions thrown. Could we disallow this with a check in @JRubyMethod? I think that would be beneficial,

Re: [jruby-dev] Java exceptions from @JRubyMethods

2008-04-29 Thread Charles Oliver Nutter
Ola Bini wrote: Hi, Now that I'm working through all the lovely method bindings in OpenSSL it dawns on me that it's actually a bit of a problem to have Java exceptions thrown. Could we disallow this with a check in @JRubyMethod? I think that would be beneficial, since we don't handle Java exc

[jruby-dev] Java exceptions from @JRubyMethods

2008-04-29 Thread Ola Bini
Hi, Now that I'm working through all the lovely method bindings in OpenSSL it dawns on me that it's actually a bit of a problem to have Java exceptions thrown. Could we disallow this with a check in @JRubyMethod? I think that would be beneficial, since we don't handle Java exceptions the same

[jruby-dev] [jira] Created: (JRUBY-2470) Invocation generated methods let some exceptions through

2008-04-29 Thread Ola Bini (JIRA)
Invocation generated methods let some exceptions through Key: JRUBY-2470 URL: http://jira.codehaus.org/browse/JRUBY-2470 Project: JRuby Issue Type: Bug Reporter: Ola Bini

[jruby-dev] [jira] Created: (JRUBY-2469) getMetaClass and metaclass should not be used to define methods, ever.

2008-04-29 Thread Ola Bini (JIRA)
getMetaClass and metaclass should not be used to define methods, ever. -- Key: JRUBY-2469 URL: http://jira.codehaus.org/browse/JRUBY-2469 Project: JRuby Issue Type: Bug