Re: Crash from "recursive" method handle chain

2011-07-27 Thread Charles Oliver Nutter
On Wed, Jul 27, 2011 at 2:27 PM, Tom Rodriguez wrote: > Presumably that's a valid implementation of selectAlternative which seems to > disallow these kinds of shenanigans at least until Java requires tail call > elimination. That was my expectation as well. It's a cute little case, since it's a

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Charles Oliver Nutter
On Wed, Jul 27, 2011 at 4:27 AM, Christian Thalinger wrote: > Right, it's a poll page read.  test on x86 only sets flags according to the > test.  The Instruction Set Reference from Intel says: > > "Description > > Computes the bit-wise logical AND of first operand (source 1 operand) and the > s

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Tom Rodriguez
On Jul 27, 2011, at 2:50 AM, Charles Oliver Nutter wrote: > I'm getting back into invokedynamic stuff (in between > conferencing...whew!). Perf reports are coming soon, but in the > interim > > I was playing with implementing "loops" using the trick Ola showed me > of binding a call site in

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Rémi Forax
On 07/27/2011 01:27 PM, Christian Thalinger wrote: > On Jul 27, 2011, at 12:41 PM, Charles Oliver Nutter wrote: > >> On Wed, Jul 27, 2011 at 3:21 AM, Rémi Forax wrote: >>> I've just read your slides [1]. >>> I believe that the test before returning the result of add (slide 201) >>> is a safepoint

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Rémi Forax
On 07/27/2011 12:41 PM, Charles Oliver Nutter wrote: > On Wed, Jul 27, 2011 at 3:21 AM, Rémi Forax wrote: >> I've just read your slides [1]. >> I believe that the test before returning the result of add (slide 201) >> is a safepoint check. > Oh really? What is it doing with eax, though, since that

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Christian Thalinger
On Jul 27, 2011, at 12:41 PM, Charles Oliver Nutter wrote: > On Wed, Jul 27, 2011 at 3:21 AM, Rémi Forax wrote: >> I've just read your slides [1]. >> I believe that the test before returning the result of add (slide 201) >> is a safepoint check. > > Oh really? What is it doing with eax, though,

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Charles Oliver Nutter
On Wed, Jul 27, 2011 at 3:21 AM, Rémi Forax wrote: > I've just read your slides [1]. > I believe that the test before returning the result of add (slide 201) > is a safepoint check. Oh really? What is it doing with eax, though, since that has the result of the add operation? - Charlie __

Re: Crash from "recursive" method handle chain

2011-07-27 Thread Rémi Forax
On 07/27/2011 11:50 AM, Charles Oliver Nutter wrote: > I'm getting back into invokedynamic stuff (in between > conferencing...whew!). Perf reports are coming soon, but in the > interim I've just read your slides [1]. I believe that the test before returning the result of add (slide 201) is a

Crash from "recursive" method handle chain

2011-07-27 Thread Charles Oliver Nutter
I'm getting back into invokedynamic stuff (in between conferencing...whew!). Perf reports are coming soon, but in the interim I was playing with implementing "loops" using the trick Ola showed me of binding a call site in the chain and having it circle back to the top. Fun, cute, etc. https:/