Integrated: 8279437: [JVMCI] exception in HotSpotJVMCIRuntime.translate can exit the VM
Doug Simon
dnsimon at openjdk.java.net
Sat Jan 8 21:52:30 UTC 2022
On Tue, 4 Jan 2022 08:51:29 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: e14fb4f4
Author: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/e14fb4f4aa9c4569615005e474f897c54094f024
Stats: 492 lines in 10 files changed: 359 ins; 32 del; 101 mod
8279437: [JVMCI] exception in HotSpotJVMCIRuntime.translate can exit the VM
Reviewed-by: kvn
-------------
PR: https://git.openjdk.java.net/jdk/pull/6951
More information about the hotspot-compiler-dev
mailing list