RFR: 8279437: [JVMCI] exception in HotSpotJVMCIRuntime.translate can exit the VM [v2]
Vladimir Kozlov
kvn at openjdk.java.net
Tue Jan 4 20:55:13 UTC 2022
On Tue, 4 Jan 2022 14:15:50 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.
>
> Doug Simon has updated the pull request incrementally with one additional commit since the last revision:
>
> fixed one comment and improved others
Please, update copyright year to 2022 in changed files.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6951
More information about the hotspot-compiler-dev
mailing list