On Fri, 25 Oct 2024 21:51:53 GMT, Justin Lu <j...@openjdk.org> wrote:

> A trivial JNI refactoring in Hotspot to use `ExceptionCheck()` over 
> `ExceptionOccurred()` when the usage is treating the return value as a 
> boolean. This is part of the bigger umbrella issue: 
> [JDK-8341542](https://bugs.openjdk.org/browse/JDK-8341542). 
> 
> 
> 
>>     ExceptionCheck
>>     We introduce a convenience function to check for pending exceptions 
>> without creating a local reference to the exception object.
>> 
>>     jboolean ExceptionCheck(JNIEnv *env);
>> 
>>     Returns JNI_TRUE when there is a pending exception; otherwise, returns 
>> JNI_FALSE.

This pull request has now been integrated.

Changeset: 7461dfe9
Author:    Justin Lu <j...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/7461dfe9c652542ef4e8f8fe36ac601ebd345492
Stats:     13 lines in 7 files changed: 0 ins; 0 del; 13 mod

8341788: Fix ExceptionOccurred in hotspot

Reviewed-by: dholmes

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

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

Reply via email to