mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8208999: Some use of Klass* should be replaced by InstanceKlass*
Klass::java_super() => InstanceKlass*; InstanceKlass::{local,transitive}_interfaces() => Array<InstanceKlass*>* Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
01cc27f875
commit
1b2e7cbaef
32 changed files with 275 additions and 245 deletions
|
@ -229,7 +229,7 @@ bool Klass::can_be_primary_super_slow() const {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Klass::initialize_supers(Klass* k, Array<Klass*>* transitive_interfaces, TRAPS) {
|
||||
void Klass::initialize_supers(Klass* k, Array<InstanceKlass*>* transitive_interfaces, TRAPS) {
|
||||
if (FastSuperclassLimit == 0) {
|
||||
// None of the other machinery matters.
|
||||
set_super(k);
|
||||
|
@ -348,7 +348,7 @@ void Klass::initialize_supers(Klass* k, Array<Klass*>* transitive_interfaces, TR
|
|||
}
|
||||
|
||||
GrowableArray<Klass*>* Klass::compute_secondary_supers(int num_extra_slots,
|
||||
Array<Klass*>* transitive_interfaces) {
|
||||
Array<InstanceKlass*>* transitive_interfaces) {
|
||||
assert(num_extra_slots == 0, "override for complex klasses");
|
||||
assert(transitive_interfaces == NULL, "sanity");
|
||||
set_secondary_supers(Universe::the_empty_klass_array());
|
||||
|
@ -765,13 +765,6 @@ bool Klass::verify_vtable_index(int i) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Klass::verify_itable_index(int i) {
|
||||
assert(is_instance_klass(), "");
|
||||
int method_count = klassItable::method_count_for_interface(this);
|
||||
assert(i >= 0 && i < method_count, "index out of bounds");
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif // PRODUCT
|
||||
|
||||
// Caller needs ResourceMark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue