< prev index next >

src/share/vm/oops/klassVtable.cpp

Print this page

        

*** 1459,1470 **** _verify_count = Universe::verify_count(); #endif oop* end_of_obj = (oop*)_klass() + _klass()->size(); oop* end_of_vtable = (oop *)&table()[_length]; if (end_of_vtable > end_of_obj) { ! fatal(err_msg("klass %s: klass object too short (vtable extends beyond " ! "end)", _klass->internal_name())); } for (int i = 0; i < _length; i++) table()[i].verify(this, st); // verify consistency with superKlass vtable Klass* super = _klass->super(); --- 1459,1470 ---- _verify_count = Universe::verify_count(); #endif oop* end_of_obj = (oop*)_klass() + _klass()->size(); oop* end_of_vtable = (oop *)&table()[_length]; if (end_of_vtable > end_of_obj) { ! fatal("klass %s: klass object too short (vtable extends beyond end)", ! _klass->internal_name()); } for (int i = 0; i < _length; i++) table()[i].verify(this, st); // verify consistency with superKlass vtable Klass* super = _klass->super();
*** 1503,1513 **** // we sub_type, because it could be a miranda method if (!vt->klass()->is_subtype_of(method()->method_holder())) { #ifndef PRODUCT print(); #endif ! fatal(err_msg("vtableEntry " PTR_FORMAT ": method is from subclass", this)); } } #ifndef PRODUCT --- 1503,1513 ---- // we sub_type, because it could be a miranda method if (!vt->klass()->is_subtype_of(method()->method_holder())) { #ifndef PRODUCT print(); #endif ! fatal("vtableEntry " PTR_FORMAT ": method is from subclass", this); } } #ifndef PRODUCT
< prev index next >