Re: Projects, which use JSR292

2011-02-18 Thread Christian Thalinger
On Feb 16, 2011, at 6:21 PM, Christian Thalinger wrote: >> Ahh, I must still have one or more of my permutes botched. I'll try to >> fix this up today. Thanks! > > When this is in, I try to confirm your numbers. I can confirm your numbers. This is a 32-bit Linux product build: $ $JAVA_HOME/bin/

Re: Projects, which use JSR292

2011-02-18 Thread Rémi Forax
On 02/18/2011 11:44 AM, Christian Thalinger wrote: > On Feb 16, 2011, at 6:21 PM, Christian Thalinger wrote: >>> Ahh, I must still have one or more of my permutes botched. I'll try to >>> fix this up today. Thanks! >> When this is in, I try to confirm your numbers. > I can confirm your numbers. Go

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 18, 2011 at 5:24 AM, Rémi Forax wrote: > Good news ! > Charles does it mean that JRuby's invokedynamic now works without > using the previously existing logic. > I mean, you use only method handles from the callsite to the target method. More and more, but definitely not completely. I

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 18, 2011 at 5:52 AM, Charles Oliver Nutter wrote: > I did just land another revision that allows Ruby to Ruby calls > meeting the above criteria to bind all the way through, and > performance dropped precipitously: The degradation for tak is just as significant: Before: ~/projects/j

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 18, 2011 at 5:56 AM, Charles Oliver Nutter wrote: > wrote: >> I did just land another revision that allows Ruby to Ruby calls >> meeting the above criteria to bind all the way through, and >> performance dropped precipitously: > > The degradation for tak is just as significant: More

Re: Projects, which use JSR292

2011-02-18 Thread Christian Thalinger
On Feb 18, 2011, at 12:52 PM, Charles Oliver Nutter wrote: > On Fri, Feb 18, 2011 at 5:24 AM, Rémi Forax wrote: >> Good news ! >> Charles does it mean that JRuby's invokedynamic now works without >> using the previously existing logic. >> I mean, you use only method handles from the callsite to th

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 18, 2011 at 6:17 AM, Christian Thalinger wrote: > Is there a switch to turn direct ruby-to-ruby calls on and off?  I'd like to > compare inlining trees and maybe code output. Just pushed a couple for you in a4a0802: jruby.compile.invokedynamic.rubyDirect=true|false (Ruby targets dir

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
FYI, my "patches/hotspot" dir is at revision 6eddc7cbeba6 - Charlie On Fri, Feb 18, 2011 at 6:28 AM, Charles Oliver Nutter wrote: > On Fri, Feb 18, 2011 at 6:17 AM, Christian Thalinger > wrote: >> Is there a switch to turn direct ruby-to-ruby calls on and off?  I'd like to >> compare inlining

Re: Projects, which use JSR292

2011-02-18 Thread Christian Thalinger
On Feb 18, 2011, at 1:33 PM, Charles Oliver Nutter wrote: > FYI, my "patches/hotspot" dir is at revision 6eddc7cbeba6 I'm using hotspot-comp/hotspot/ -- Christian > > - Charlie > > On Fri, Feb 18, 2011 at 6:28 AM, Charles Oliver Nutter > wrote: >> On Fri, Feb 18, 2011 at 6:17 AM, Christian Th

Re: Projects, which use JSR292

2011-02-18 Thread Christian Thalinger
On Feb 18, 2011, at 1:28 PM, Charles Oliver Nutter wrote: > On Fri, Feb 18, 2011 at 6:17 AM, Christian Thalinger > wrote: >> Is there a switch to turn direct ruby-to-ruby calls on and off? I'd like to >> compare inlining trees and maybe code output. > > Just pushed a couple for you in a4a0802:

Re: Projects, which use JSR292

2011-02-18 Thread Christian Thalinger
On Feb 18, 2011, at 2:19 PM, Christian Thalinger wrote: > On Feb 18, 2011, at 1:28 PM, Charles Oliver Nutter wrote: >> On Fri, Feb 18, 2011 at 6:17 AM, Christian Thalinger >> wrote: >>> Is there a switch to turn direct ruby-to-ruby calls on and off? I'd like >>> to compare inlining trees and may

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 18, 2011 at 7:19 AM, Christian Thalinger wrote: > What I can tell so far is that setting rubyDirect=true inlines a whole lot > more stuff than without.  I looks like it wants to inline all recursive calls > of fib_ruby into a single method, which doesn't work very well, hitting two

Re: Projects, which use JSR292

2011-02-18 Thread Charles Oliver Nutter
I also need to say this: PUT ME TO WORK :) I'm very eager to start showing off invokedynamic and make it pervasive throughout JRuby (or as pervasive as possible while still supporting Java 6). Tell me what I need to do to help! - Charlie On Fri, Feb 18, 2011 at 2:06 PM, Charles Oliver Nutter wr