Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Wed, Nov 30, 2011 at 9:52 PM, Stephen Bannasch wrote: > At 3:03 PM -0500 11/30/11, Stephen Bannasch wrote: >>Benchmark code here: https://gist.github.com/1410423 > > The hpricot benchmark is also slowed down consdierably. I have found more issues in my invokedynamic binding logic and am in the

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Thu, Dec 1, 2011 at 2:23 AM, Charles Oliver Nutter wrote: > I am still seeing rebinding in profiles of some of the remaining slow > benchmarks, so I'm missing something. Bleah, I seem to have found the problem. If I disable the use of SwitchPoint for class-mutation-originated call site invali

How to monitor SwitchPoint's impact?

2011-12-01 Thread Charles Oliver Nutter
My recent explorations into Stephen B's perf degradation on JRuby have led me to an unfortunate conclusion: something SwitchPoint-related is responsible for the remaining slowdown. I had bugs I fixed, like the awful PIC-causes-repeat-rebinding issue or the heavy-class-mutation-never-stabilizes iss

Re: Process-level fork on OpenJDK...is it madness?

2011-12-01 Thread Jochen Theodorou
Am 01.12.2011 00:35, schrieb Rémi Forax: [...] > The only way I see to avoid that is to not load the meta-class > until someone reference them so you can compile this example > to System.out.println(2) and if there is a ref to a meta-class somewhere, > discard the code and recompile it with meta-cl

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Stephen Bannasch
At 3:29 AM -0600 12/1/11, Charles Oliver Nutter wrote: >This is a pretty disappointing finding. I'm not yet sure whether it's >a bug in SwitchPoint optimization or in JRuby's use of SwitchPoint, >but I'd like to see your numbers with and without this flag. Latest JRuby master, on Java 1.6.0_27, ma

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Thu, Dec 1, 2011 at 9:47 AM, Stephen Bannasch wrote: > At 3:29 AM -0600 12/1/11, Charles Oliver Nutter wrote: >>This is a pretty disappointing finding. I'm not yet sure whether it's >>a bug in SwitchPoint optimization or in JRuby's use of SwitchPoint, >>but I'd like to see your numbers with and

Re: How to monitor SwitchPoint's impact?

2011-12-01 Thread Tom Rodriguez
On Dec 1, 2011, at 1:34 AM, Charles Oliver Nutter wrote: > My recent explorations into Stephen B's perf degradation on JRuby have > led me to an unfortunate conclusion: something SwitchPoint-related is > responsible for the remaining slowdown. > > I had bugs I fixed, like the awful PIC-causes-re

Re: How to monitor SwitchPoint's impact?

2011-12-01 Thread Charles Oliver Nutter
Perfect, Tom, thanks. On Thu, Dec 1, 2011 at 3:21 PM, Tom Rodriguez wrote: > > On Dec 1, 2011, at 1:34 AM, Charles Oliver Nutter wrote: > >> My recent explorations into Stephen B's perf degradation on JRuby have >> led me to an unfortunate conclusion: something SwitchPoint-related is >> responsib