8223626: move print() functions to cpp files

Improve debugging experience

Reviewed-by: dholmes, dlong
This commit is contained in:
Coleen Phillimore 2019-05-10 09:05:29 -04:00
parent c90f3ee68b
commit 77d60eff6a
44 changed files with 100 additions and 45 deletions

View file

@ -510,6 +510,8 @@ void OopMapValue::print_on(outputStream* st) const {
st->print(" ");
}
void OopMapValue::print() const { print_on(tty); }
void ImmutableOopMap::print_on(outputStream* st) const {
OopMapValue omv;
st->print("ImmutableOopMap{");
@ -520,6 +522,8 @@ void ImmutableOopMap::print_on(outputStream* st) const {
st->print("}");
}
void ImmutableOopMap::print() const { print_on(tty); }
void OopMap::print_on(outputStream* st) const {
OopMapValue omv;
st->print("OopMap{");
@ -530,6 +534,8 @@ void OopMap::print_on(outputStream* st) const {
st->print("off=%d}", (int) offset());
}
void OopMap::print() const { print_on(tty); }
void ImmutableOopMapSet::print_on(outputStream* st) const {
const ImmutableOopMap* last = NULL;
for (int i = 0; i < _count; ++i) {
@ -545,6 +551,8 @@ void ImmutableOopMapSet::print_on(outputStream* st) const {
}
}
void ImmutableOopMapSet::print() const { print_on(tty); }
void OopMapSet::print_on(outputStream* st) const {
int i, len = om_count();
@ -558,6 +566,8 @@ void OopMapSet::print_on(outputStream* st) const {
}
}
void OopMapSet::print() const { print_on(tty); }
bool OopMap::equals(const OopMap* other) const {
if (other->_omv_count != _omv_count) {
return false;