RFR: 8341796: Fix ExceptionOccurred in jdk.hotspot.agent [v2]

Justin Lu jlu at openjdk.org
Mon Nov 4 20:57:35 UTC 2024


On Thu, 31 Oct 2024 20:14:43 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> Please review this PR which is a JNI cleanup to replace incorrect usages of `jthrowable ExceptionOccurred(JNIEnv *env)` with `jboolean ExceptionCheck(JNIEnv *env)` in _jdk.hotspot.agent_.
>> 
>> This is part of the bigger umbrella issue: https://bugs.openjdk.org/browse/JDK-8341542. This change only modifies instances where the exception object is not needed, and the method return value is being treated as if it were a boolean.
>
> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   for consistency, include the comments as well

Thanks for the reviews.

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

PR Comment: https://git.openjdk.org/jdk/pull/21813#issuecomment-2455682666


More information about the serviceability-dev mailing list