8301088: oopDesc::print_on should consistently use a trailing newline

Reviewed-by: tschatzl, coleenp
This commit is contained in:
Axel Boldt-Christmas 2023-01-30 07:14:25 +00:00
parent 64b25ea0b4
commit 4bd3f0a0d5
2 changed files with 4 additions and 4 deletions

View File

@ -40,9 +40,9 @@
void oopDesc::print_on(outputStream* st) const {
if (*((juint*)this) == badHeapWordVal) {
st->print("BAD WORD");
st->print_cr("BAD WORD");
} else if (*((juint*)this) == badMetaWordVal) {
st->print("BAD META WORD");
st->print_cr("BAD META WORD");
} else {
klass()->oop_print_on(cast_to_oop(this), st);
}

View File

@ -403,9 +403,9 @@ template void stackChunkOopDesc::fix_thawed_frame(const frame& f, const SmallReg
void stackChunkOopDesc::print_on(bool verbose, outputStream* st) const {
if (*((juint*)this) == badHeapWordVal) {
st->print("BAD WORD");
st->print_cr("BAD WORD");
} else if (*((juint*)this) == badMetaWordVal) {
st->print("BAD META WORD");
st->print_cr("BAD META WORD");
} else {
InstanceStackChunkKlass::print_chunk(const_cast<stackChunkOopDesc*>(this), verbose, st);
}