mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu
This commit is contained in:
parent
e1d995ab86
commit
7fee66f152
39 changed files with 176 additions and 179 deletions
|
@ -165,8 +165,7 @@ address NativeLookup::lookup_style(methodHandle method, char* pure_name, const c
|
|||
// Note: It is critical for bootstrapping that Java_java_lang_ClassLoader_00024NativeLibrary_find
|
||||
// gets found the first time around - otherwise an infinite loop can occure. This is
|
||||
// another VM/library dependency
|
||||
Handle loader(THREAD,
|
||||
InstanceKlass::cast(method->method_holder())->class_loader());
|
||||
Handle loader(THREAD, method->method_holder()->class_loader());
|
||||
if (loader.is_null()) {
|
||||
entry = lookup_special_native(jni_name);
|
||||
if (entry == NULL) {
|
||||
|
@ -393,7 +392,7 @@ address NativeLookup::lookup(methodHandle method, bool& in_base_library, TRAPS)
|
|||
if (PrintJNIResolving) {
|
||||
ResourceMark rm(THREAD);
|
||||
tty->print_cr("[Dynamic-linking native method %s.%s ... JNI]",
|
||||
Klass::cast(method->method_holder())->external_name(),
|
||||
method->method_holder()->external_name(),
|
||||
method->name()->as_C_string());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue