On Sat, Jul 7, 2012 at 1:45 PM, Rémi Forax <fo...@univ-mlv.fr> wrote: > Exception are not expensive if you throw them and just catch them (and > don't use them) in the same inlining horizon, > so you can use them to implement non Java control flow without thinking > too much.
Important to note here that if they don't inline, you get considerably slower exception logic, so it's crucial that the exception throw and catch inline together. This is hard to guarantee on current VMs...and in fact this may be the most difficult aspect of writing low-level systems for the JVM right now (like language implementations): you can't make any guarantees. - Charlie _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev