mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +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
|
@ -40,7 +40,7 @@
|
|||
int InstanceMirrorKlass::_offset_of_static_fields = 0;
|
||||
|
||||
int InstanceMirrorKlass::instance_size(KlassHandle k) {
|
||||
if (k() != NULL && k->oop_is_instance()) {
|
||||
if (k() != NULL && k->is_instance_klass()) {
|
||||
return align_object_size(size_helper() + InstanceKlass::cast(k())->static_field_size());
|
||||
}
|
||||
return size_helper();
|
||||
|
@ -65,7 +65,7 @@ int InstanceMirrorKlass::oop_size(oop obj) const {
|
|||
|
||||
int InstanceMirrorKlass::compute_static_oop_field_count(oop obj) {
|
||||
Klass* k = java_lang_Class::as_Klass(obj);
|
||||
if (k != NULL && k->oop_is_instance()) {
|
||||
if (k != NULL && k->is_instance_klass()) {
|
||||
return InstanceKlass::cast(k)->static_oop_field_count();
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue