[vmkit-commits] New exception model

Nicolas Geoffray nicolas.geoffray at gmail.com
Tue Oct 25 14:57:46 PDT 2011


Local changes got introduced into the previous patch. Uploading the correct
one.

On Tue, Oct 25, 2011 at 11:53 PM, Nicolas Geoffray <
nicolas.geoffray at gmail.com> wrote:

> 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/7f04d375/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exception.patch
Type: application/octet-stream
Size: 34290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20111025/7f04d375/attachment.obj>


More information about the vmkit-commits mailing list