[foreign-memaccess+abi] Integrated: 8301261: Add linker option for specifying uncaught exception handler

Jorn Vernee jvernee at openjdk.org
Fri Feb 3 17:33:12 UTC 2023


On Wed, 1 Feb 2023 22:12:30 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> This patch adds the ability to specify an uncaught exception handler for an upcall stub, and changes the uncaught exception handling code to delegate to the thread's installed uncaught exception handler when no handler is specified as well, which will also allow setting a system-wide uncaught exception handler.
> 
> For the tests: I've refactored TestUpcallException a bit. Previously the test code was found in a separate class (ThrowingUpcall). I've removed this class and moved the code into nested classes of TestUpcallException instead. Then I've added new test cases for testing the uncaught exception handler.
> 
> I also noticed that we were setting the wrong system property to control binding recipe specialization in several tests (I thought I fixed this before, but it might have been undone by a merge...). I've fixed these to set the right property, and that also revealed a small bug in the interpreted version of the UnboxAddress binding, where we weren't properly reject heap segments. I've fixed that as well.

This pull request has now been integrated.

Changeset: cbd26350
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/panama-foreign/commit/cbd263509ebb8fbdb0552ff433376a765bf1946f
Stats:     376 lines in 29 files changed: 209 ins; 96 del; 71 mod

8301261: Add linker option for specifying uncaught exception handler
8301249: Linker::upcalStub should accept linker options

Reviewed-by: mcimadamore

-------------

PR: https://git.openjdk.org/panama-foreign/pull/777


More information about the panama-dev mailing list