RFR: 8299088: ClassLoader.c contains 2 JNI exception pending defect groups

Mandy Chung mchung at openjdk.org
Wed Mar 8 22:41:09 UTC 2023


On Wed, 8 Mar 2023 22:02:22 GMT, Justin Lu <jlu at openjdk.org> wrote:

> This PR removes the JNI Exception pending defect groups in ClassLoader.c. 
> 
> `getUTF()` throws an exception and subsequently returns `null`; the exception should either be cleared, or control returned to the JVM. `JNU_ThrowOutOfMemoryError(env, NULL);` should not be called again

This change looks right.  OOME is thrown by getUTF if fails to allocate a string.   It should not be thrown again.

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

Marked as reviewed by mchung (Reviewer).

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


More information about the core-libs-dev mailing list