TaggedArrays (Proposal)

Charles Oliver Nutter headius at headius.com
Sat Jul 7 14:45:11 PDT 2012


On Sat, Jul 7, 2012 at 1:45 PM, Rémi Forax <forax at 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


More information about the mlvm-dev mailing list