6888954: argument formatting for assert() and friends

Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
This commit is contained in:
John Coomes 2010-04-22 13:23:15 -07:00
parent 7e76feaf42
commit 99196ff9ca
37 changed files with 396 additions and 211 deletions

View file

@ -1180,8 +1180,8 @@ void klassVtable::verify(outputStream* st, bool forced) {
oop* end_of_obj = (oop*)_klass() + _klass()->size();
oop* end_of_vtable = (oop *)&table()[_length];
if (end_of_vtable > end_of_obj) {
fatal1("klass %s: klass object too short (vtable extends beyond end)",
_klass->internal_name());
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);
@ -1224,7 +1224,7 @@ void vtableEntry::verify(klassVtable* vt, outputStream* st) {
#ifndef PRODUCT
print();
#endif
fatal1("vtableEntry %#lx: method is from subclass", this);
fatal(err_msg("vtableEntry " PTR_FORMAT ": method is from subclass", this));
}
}