hg: mlvm/mlvm: netbeans/meth project

2011-05-25 Thread john . r . rose
Changeset: 14ffe87f27c6 Author:jrose Date: 2011-05-25 00:15 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/rev/14ffe87f27c6 netbeans/meth project ! netbeans/meth/build.xml ! netbeans/meth/nbproject/build-impl.xml ! netbeans/meth/nbproject/genfiles.properties !

Re: Good news, bad news

2011-05-25 Thread Christian Thalinger
On May 25, 2011, at 5:58 AM, Ola Bini wrote: Hi, There are at least three problems that are still there. They might be connected, or not. (I will tell you how to reproduce these at the end) I just built a new JVM: openjdk version 1.7.0-internal OpenJDK Runtime Environment (build

Re: Good news, bad news

2011-05-25 Thread Ola Bini
Hi, Just to clarify, my builds are against the current patchset in the MLVM repository, so that might explain why you're not seeing these problems. Cheers On 2011-05-25 14.29, Christian Thalinger wrote: On May 25, 2011, at 5:58 AM, Ola Bini wrote: Hi, There are at least three problems that

Re: Good news, bad news

2011-05-25 Thread Christian Thalinger
On May 25, 2011, at 12:20 PM, Ola Bini wrote: Hi, Just to clarify, my builds are against the current patchset in the MLVM repository, so that might explain why you're not seeing these problems. I know that. That's why we need to find out where the problem is (some hints below). Can

Re: Good news, bad news

2011-05-25 Thread Ola Bini
Well, on my linux box with a JDK built this morning I don't see any of these problems actually. (However, there are things on my master that only works with the mlvm patches. Type conversions specifically.) Problem 3 also seems to not be there - you would notice if it were since it's also a total

Re: Good news, bad news

2011-05-25 Thread John Rose
On May 25, 2011, at 3:23 AM, Christian Thalinger wrote: I know that. That's why we need to find out where the problem is (some hints below). Can someone provide a jar file of the current MLVM JSR 292 classes (like John's meth.jar)? I just posted it with the javadoc:

Re: Good news, bad news

2011-05-25 Thread Charles Oliver Nutter
Actually now that I look at it, this isn't all that solid performance. It's just *slightly* faster than using JRuby's inline cache, which almost never inlines... Inline cache only, via CachingCallSite. ~/projects/jruby ➔ jruby -Xcompile.invokedynamic=false --server bench/bench_fib_recursive.rb 5

Re: Good news, bad news

2011-05-25 Thread John Rose
On May 25, 2011, at 9:31 AM, Charles Oliver Nutter wrote: Build in progress! I'll let you know how it goes. How low is low in low arity? About 0-9. Let's find the next bottleneck! -- John ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net

Re: Good news, bad news

2011-05-25 Thread Charles Oliver Nutter
On Wed, May 25, 2011 at 2:14 PM, John Rose john.r.r...@oracle.com wrote: On May 25, 2011, at 9:31 AM, Charles Oliver Nutter wrote: Build in progress! I'll let you know how it goes. How low is low in low arity? About 0-9. Let's find the next bottleneck! That's the spirit! We can do it! -

Re: Good news, bad news

2011-05-25 Thread Tom Rodriguez
I've got the bimorphic method handle inline working. I was doing something stupid at the beginning which is why it wasn't as easy as I expected to be and then I encountered a stupid API which wasted a little more time. I was able to leverage the existing invokedynamic call site cache code

Re: Good news, bad news

2011-05-25 Thread Charles Oliver Nutter
On Wed, May 25, 2011 at 5:12 PM, Tom Rodriguez tom.rodrig...@oracle.com wrote: I've got the bimorphic method handle inline working.  I was doing something stupid at the beginning which is why it wasn't as easy as I expected to be and then I encountered a stupid API which wasted a little more

Danger Will Robinson! Missing API!

2011-05-25 Thread Charles Oliver Nutter
Oh my goodness...I just realized an obvious missing API...is there still time?! SwitchPoint has no way to query if it has been invalidated! Is this by design? I would like to use this as both a call site guard and as a queryable trigger...to know whether I can go forward with the faster

More performance explorations

2011-05-25 Thread Charles Oliver Nutter
Ok, onward with perf exploration, folks! I'm running with mostly-current MLVM, with John's temporary reversion of GWT to the older non-ricochet logic. As reported before, fib has improved with the reversion, but it's only marginally faster than JRuby's inline caching logic and easily 30-40%

Re: Danger Will Robinson! Missing API!

2011-05-25 Thread Attila Szegedi
On May 25, 2011, at 10:34 PM, Charles Oliver Nutter wrote: On Thu, May 26, 2011 at 12:19 AM, Ola Bini ola.b...@gmail.com wrote: Take a look at the way I use SwitchPoints in Seph. The api you're looking for is already there: SwitchPoint x = new SwitchPoint(); MethodHandle valid =

Re: Danger Will Robinson! Missing API!

2011-05-25 Thread Ola Bini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, lacking a method, it's actually probably the most straightforward one :-) Ola wins gazillion points for resourcefulness. Actually, it was Remi who came up with this gem when we discussed adding an isInvalid() method on SwitchPoint. The