RFR: 8279437: [JVMCI] exception in HotSpotJVMCIRuntime.translate can exit the VM [v2]

Doug Simon dnsimon at openjdk.java.net
Tue Jan 4 14:15:50 UTC 2022


> This PR addresses the problem reported in JDK-8279437 by adding support for transferring exceptions from HotSpot into libgraal (the other way around was already supported).
> It also improves the translation of exceptions by:
> * using a native (resource) buffer more directly for serializing an exception
> * changing the serialization format to be a gzipped binary representation as it is much smaller than the string representation currently used and avoids having to worry about special characters (e.g. a `|` in an exception's message string).
> 
> It also adds the `jvmci.ForceTranslateFailure` option to allow testing handling of failures in `HotSpotJVMCIRuntime.translate`. See https://github.com/oracle/graal/commit/b3a6ce471e0d116196d6fde1c62377191f5db4ec for such a test.

Doug Simon has updated the pull request incrementally with one additional commit since the last revision:

  fixed one comment and improved others

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6951/files
  - new: https://git.openjdk.java.net/jdk/pull/6951/files/6d24cb58..38a2f3f6

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6951&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6951&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6951.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6951/head:pull/6951

PR: https://git.openjdk.java.net/jdk/pull/6951


More information about the hotspot-compiler-dev mailing list