RFR: 8313874 - JNI NewWeakGlobalRef throws exception for null arg
David Holmes
dholmes at openjdk.org
Tue Aug 8 12:17:31 UTC 2023
On Tue, 8 Aug 2023 12:01:23 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> There's no check to see if obj is a weak global reference in this function.
I'm not even sure what that means. Are `jweak` and `jobject` interchangeable i.e we should detect:
jweak j = env->NewWeakGlobalRef(env, env->NewWeakGlobalRef(env, obj));
??
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15188#issuecomment-1669499644
More information about the hotspot-dev
mailing list