equal
deleted
inserted
replaced
227 return false; |
227 return false; |
228 else |
228 else |
229 return true; |
229 return true; |
230 } |
230 } |
231 |
231 |
232 void Klass::initialize_supers(Klass* k, Array<Klass*>* transitive_interfaces, TRAPS) { |
232 void Klass::initialize_supers(Klass* k, Array<InstanceKlass*>* transitive_interfaces, TRAPS) { |
233 if (FastSuperclassLimit == 0) { |
233 if (FastSuperclassLimit == 0) { |
234 // None of the other machinery matters. |
234 // None of the other machinery matters. |
235 set_super(k); |
235 set_super(k); |
236 return; |
236 return; |
237 } |
237 } |
346 set_secondary_supers(s2); |
346 set_secondary_supers(s2); |
347 } |
347 } |
348 } |
348 } |
349 |
349 |
350 GrowableArray<Klass*>* Klass::compute_secondary_supers(int num_extra_slots, |
350 GrowableArray<Klass*>* Klass::compute_secondary_supers(int num_extra_slots, |
351 Array<Klass*>* transitive_interfaces) { |
351 Array<InstanceKlass*>* transitive_interfaces) { |
352 assert(num_extra_slots == 0, "override for complex klasses"); |
352 assert(num_extra_slots == 0, "override for complex klasses"); |
353 assert(transitive_interfaces == NULL, "sanity"); |
353 assert(transitive_interfaces == NULL, "sanity"); |
354 set_secondary_supers(Universe::the_empty_klass_array()); |
354 set_secondary_supers(Universe::the_empty_klass_array()); |
355 return NULL; |
355 return NULL; |
356 } |
356 } |
760 #ifndef PRODUCT |
760 #ifndef PRODUCT |
761 |
761 |
762 bool Klass::verify_vtable_index(int i) { |
762 bool Klass::verify_vtable_index(int i) { |
763 int limit = vtable_length()/vtableEntry::size(); |
763 int limit = vtable_length()/vtableEntry::size(); |
764 assert(i >= 0 && i < limit, "index %d out of bounds %d", i, limit); |
764 assert(i >= 0 && i < limit, "index %d out of bounds %d", i, limit); |
765 return true; |
|
766 } |
|
767 |
|
768 bool Klass::verify_itable_index(int i) { |
|
769 assert(is_instance_klass(), ""); |
|
770 int method_count = klassItable::method_count_for_interface(this); |
|
771 assert(i >= 0 && i < method_count, "index out of bounds"); |
|
772 return true; |
765 return true; |
773 } |
766 } |
774 |
767 |
775 #endif // PRODUCT |
768 #endif // PRODUCT |
776 |
769 |