RFR: 8367142: Simplify java mirror handling in JNI methods [v2]
Stefan Karlsson
stefank at openjdk.org
Wed Sep 10 09:41:38 UTC 2025
On Tue, 9 Sep 2025 06:29:51 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> There are 54 cases where we call as_Klass(JNIHandles::resolve_non_null(x)), so I think it would be nice to have a way to write less code.
I think you should deal with that by adding a helper function inside jni.cpp instead of extending the *Klass functions to take a jobject.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27158#issuecomment-3274150749
More information about the serviceability-dev
mailing list