[foreign-memaccess+abi] RFR: 8275061: Exceptions thrown from non-void upcalls are not handled

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon Oct 11 15:35:19 UTC 2021


On Mon, 11 Oct 2021 15:15:06 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Hi,
> 
> Exceptions thrown from non-void upcalls are currently not handled, meaning we crash the VM instead without a stack trace (CATCH macro).
> 
> Only the void case is currently handled for specialized upcalls. This PR adds the missing call to handle any uncaught exceptions for non-void upcalls as well.
> 
> Jorn

Looks good. I've always assumed, wrongly, that printing the exception name was the best we could do :-)

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

Marked as reviewed by mcimadamore (Committer).

PR: https://git.openjdk.java.net/panama-foreign/pull/597


More information about the panama-dev mailing list