[vmkit-commits] New exception model

Nicolas Geoffray nicolas.geoffray at gmail.com
Tue Oct 25 14:53:03 PDT 2011


Will,

I will be submitting the attached patch to VMKit soon. It's a rewrite of how
we handle exceptions. Basically:

Before: use setjmp/longjmp for C++, do exception checks after each call in
Java
After: use setjmp/longjmp for C++ and Java

My plan is to uniform both worlds when it comes to exceptions and eventually
change some code in LLVM for maximizing performance.

At the code level, the only thing that you need to know (I think) is that
you should not change the current's thread pending exception directly (in
C++ code), but instead should call the throwException method.

This may break some of your code in OpenJDK, so let me know if you have
questions. Otherwise, I'll submit the patch.

Cheers,
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20111025/f9d24bf1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exception.patch
Type: application/octet-stream
Size: 36096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20111025/f9d24bf1/attachment.obj>


More information about the vmkit-commits mailing list