[LLVMdev] Implementing try/catch/finally

Tom Tromey tromey at redhat.com
Mon Apr 21 06:57:07 PDT 2008

>>>>> "Talin" == Talin  <viridia at gmail.com> writes:

Talin> After doing some more research, I noticed that Java uses a jsr
Talin> to implement 'finally', at least according to this document:

Talin>   http://java.sun.com/docs/books/jvms/second_edition/html/Compiling.doc.html

In Java 5 most compilers stopped using jsr and now just duplicate the
code in the finally block.  It turns out that there are various odd
cases that mess up verification with jsr.  ISTR that jsr is deprecated
but I didn't look to see if that is really true.


More information about the llvm-dev mailing list