mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8139203: Consistent naming for klass type predicates
8138923: Remove oop coupling with InstanceKlass subclasses Renamed oop_is_instance and friends, removed the functions in oop that dug down into InstanceKlass. Reviewed-by: jrose, lfoltan, stefank
This commit is contained in:
parent
5179fc3488
commit
fc03719078
68 changed files with 257 additions and 279 deletions
|
@ -199,7 +199,7 @@ bool VM_RedefineClasses::is_modifiable_class(oop klass_mirror) {
|
|||
}
|
||||
Klass* the_class_oop = java_lang_Class::as_Klass(klass_mirror);
|
||||
// classes for arrays cannot be redefined
|
||||
if (the_class_oop == NULL || !the_class_oop->oop_is_instance()) {
|
||||
if (the_class_oop == NULL || !the_class_oop->is_instance_klass()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -3339,10 +3339,10 @@ void VM_RedefineClasses::AdjustCpoolCacheAndVtable::do_klass(Klass* k) {
|
|||
|
||||
// If the class being redefined is java.lang.Object, we need to fix all
|
||||
// array class vtables also
|
||||
if (k->oop_is_array() && _the_class_oop == SystemDictionary::Object_klass()) {
|
||||
if (k->is_array_klass() && _the_class_oop == SystemDictionary::Object_klass()) {
|
||||
k->vtable()->adjust_method_entries(the_class, &trace_name_printed);
|
||||
|
||||
} else if (k->oop_is_instance()) {
|
||||
} else if (k->is_instance_klass()) {
|
||||
HandleMark hm(_thread);
|
||||
InstanceKlass *ik = InstanceKlass::cast(k);
|
||||
|
||||
|
@ -3443,7 +3443,7 @@ void VM_RedefineClasses::AdjustCpoolCacheAndVtable::do_klass(Klass* k) {
|
|||
|
||||
// Clean method data for this class
|
||||
void VM_RedefineClasses::MethodDataCleaner::do_klass(Klass* k) {
|
||||
if (k->oop_is_instance()) {
|
||||
if (k->is_instance_klass()) {
|
||||
InstanceKlass *ik = InstanceKlass::cast(k);
|
||||
// Clean MethodData of this class's methods so they don't refer to
|
||||
// old methods that are no longer running.
|
||||
|
@ -4131,7 +4131,7 @@ void VM_RedefineClasses::increment_class_counter(InstanceKlass *ik, TRAPS) {
|
|||
|
||||
for (Klass *subk = ik->subklass(); subk != NULL;
|
||||
subk = subk->next_sibling()) {
|
||||
if (subk->oop_is_instance()) {
|
||||
if (subk->is_instance_klass()) {
|
||||
// Only update instanceKlasses
|
||||
InstanceKlass *subik = InstanceKlass::cast(subk);
|
||||
// recursively do subclasses of the current subclass
|
||||
|
@ -4158,7 +4158,7 @@ void VM_RedefineClasses::CheckClass::do_klass(Klass* k) {
|
|||
no_old_methods = false;
|
||||
}
|
||||
|
||||
if (k->oop_is_instance()) {
|
||||
if (k->is_instance_klass()) {
|
||||
HandleMark hm(_thread);
|
||||
InstanceKlass *ik = InstanceKlass::cast(k);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue