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
|
@ -908,7 +908,9 @@ public:
|
|||
bool compute_is_subtype_of(Klass* k);
|
||||
bool can_be_primary_super_slow() const;
|
||||
int oop_size(oop obj) const { return size_helper(); }
|
||||
bool oop_is_instance_slow() const { return true; }
|
||||
// slow because it's a virtual call and used for verifying the layout_helper.
|
||||
// Using the layout_helper bits, we can call is_instance_klass without a virtual call.
|
||||
DEBUG_ONLY(bool is_instance_klass_slow() const { return true; })
|
||||
|
||||
// Iterators
|
||||
void do_local_static_fields(FieldClosure* cl);
|
||||
|
@ -923,7 +925,7 @@ public:
|
|||
// Casting from Klass*
|
||||
static InstanceKlass* cast(Klass* k) {
|
||||
assert(k != NULL, "k should not be null");
|
||||
assert(k->oop_is_instance(), "cast to InstanceKlass");
|
||||
assert(k->is_instance_klass(), "cast to InstanceKlass");
|
||||
return static_cast<InstanceKlass*>(k);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue