Integrated: 8299088: ClassLoader::defineClass2 throws OOME but JNI exception pending thrown by getUTF

Justin Lu jlu at openjdk.org
Fri Mar 10 17:43:23 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 pull request has now been integrated.

Changeset: 6f54eda4
Author:    Justin Lu <jlu at openjdk.org>
Committer: Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6f54eda4a42a7c27c8eabbdc1c989de7cf246bdb
Stats:     3 lines in 1 file changed: 0 ins; 3 del; 0 mod

8299088: ClassLoader::defineClass2 throws OOME but JNI exception pending thrown by getUTF

Reviewed-by: mchung, naoto

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

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


More information about the core-libs-dev mailing list