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
|
@ -81,7 +81,7 @@ typeArrayOop oopFactory::new_typeArray_nozero(BasicType type, int length, TRAPS)
|
|||
|
||||
objArrayOop oopFactory::new_objArray(Klass* klass, int length, TRAPS) {
|
||||
assert(klass->is_klass(), "must be instance class");
|
||||
if (klass->oop_is_array()) {
|
||||
if (klass->is_array_klass()) {
|
||||
return ArrayKlass::cast(klass)->allocate_arrayArray(1, length, THREAD);
|
||||
} else {
|
||||
return InstanceKlass::cast(klass)->allocate_objArray(1, length, THREAD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue