RFR: 8297431: [JVMCI] HotSpotJVMCIRuntime.encodeThrowable should not throw an exception [v2]

Tom Rodriguez never at openjdk.org
Wed Nov 23 17:27:26 UTC 2022


On Wed, 23 Nov 2022 17:09:21 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> I was thinking we could get the jthrowable and somehow find the name of the exception from the jclass but I guess JNI doesn't let you do that.  Should we use `_from_env->describe_pending_exception()`?
>
> Good idea but unfortunately the [JNI `ExceptionDescribe` function](https://docs.oracle.com/en/java/javase/19/docs/specs/jni/functions.html#exceptiondescribe) writes to the console which is something we don't want in this context.

If we were still treating it as fatal it would be fine but I agree it's not ideal in the new code.

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

PR: https://git.openjdk.org/jdk/pull/11286


More information about the hotspot-compiler-dev mailing list