On Tue, Sep 6, 2011 at 3:36 PM, Rémi Forax <fo...@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 _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev