> 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.

Justin Lu has updated the pull request incrementally with one additional commit 
since the last revision:

  address other cases in Hotspot

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21724/files
  - new: https://git.openjdk.org/jdk/pull/21724/files/6dd00003..c3ecb692

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21724&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21724&range=00-01

  Stats: 10 lines in 5 files changed: 0 ins; 0 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/21724.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21724/head:pull/21724

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

Reply via email to