Integrated: 8367719: Refactor JNI code that uses class_to_verify_considering_redefinition()

Ioi Lam iklam at openjdk.org
Sat Sep 20 17:31:29 UTC 2025


On Tue, 16 Sep 2025 02:44:26 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Simplify the boilerplate code in jvm.cpp that calls `JvmtiThreadState::class_to_verify_considering_redefinition()`, and reduce the number of `InstanceKlass::cast()` calls.
> 
> I also changed a few fields/arguments from `Klass*` to `InstanceKlass*` as these are used exclusively with `InstanceKlass*`.

This pull request has now been integrated.

Changeset: cc65836d
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cc65836d00de7041e7d32e7f15d98108b1ae47a0
Stats:     126 lines in 3 files changed: 16 ins; 33 del; 77 mod

8367719: Refactor JNI code that uses class_to_verify_considering_redefinition()

Reviewed-by: coleenp, dholmes, sspitsyn

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

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


More information about the serviceability-dev mailing list