mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +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
|
@ -766,12 +766,12 @@ static void getBaseAndScale(int& base, int& scale, jclass acls, TRAPS) {
|
|||
}
|
||||
oop mirror = JNIHandles::resolve_non_null(acls);
|
||||
Klass* k = java_lang_Class::as_Klass(mirror);
|
||||
if (k == NULL || !k->oop_is_array()) {
|
||||
if (k == NULL || !k->is_array_klass()) {
|
||||
THROW(vmSymbols::java_lang_InvalidClassException());
|
||||
} else if (k->oop_is_objArray()) {
|
||||
} else if (k->is_objArray_klass()) {
|
||||
base = arrayOopDesc::base_offset_in_bytes(T_OBJECT);
|
||||
scale = heapOopSize;
|
||||
} else if (k->oop_is_typeArray()) {
|
||||
} else if (k->is_typeArray_klass()) {
|
||||
TypeArrayKlass* tak = TypeArrayKlass::cast(k);
|
||||
base = tak->array_header_in_bytes();
|
||||
assert(base == arrayOopDesc::base_offset_in_bytes(tak->element_type()), "array_header_size semantics ok");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue