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

Jorn Vernee jvernee at openjdk.java.net
Mon Oct 11 15:20:33 UTC 2021


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

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

Commit messages:
 - Add fix
 - Add test

Changes: https://git.openjdk.java.net/panama-foreign/pull/597/files
 Webrev: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=597&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8275061
  Stats: 41 lines in 3 files changed: 27 ins; 2 del; 12 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/597.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/597/head:pull/597

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


More information about the panama-dev mailing list