Hotspot loves PHP.reboot

Charles Oliver Nutter headius at headius.com
Tue Sep 6 14:32:51 PDT 2011


On Tue, Sep 6, 2011 at 3:36 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
> An exception is perhaps more easier to use,
> because if it overflow you may have to deoptimize, for that you need the
> stack and local values,
> it's easier to jump to a exception handler that will push all these values
> and call the interpreter.

I tend to agree. An exception would be cleanest. However, an exception
must be caught...so you have the additional try/catch logic affecting
optimization, no?

Of course perf nuts would also want to pre-allocate that exception,
since it's really flow control. Dunno if there's any precedent for
that in the JVM other than OutOfMemoryError.

- Charlie


More information about the mlvm-dev mailing list