8301088: oopDesc::print_on should consistently use a trailing newline
Reviewed-by: tschatzl, coleenp
This commit is contained in:
parent
64b25ea0b4
commit
4bd3f0a0d5
@ -40,9 +40,9 @@
|
|||||||
|
|
||||||
void oopDesc::print_on(outputStream* st) const {
|
void oopDesc::print_on(outputStream* st) const {
|
||||||
if (*((juint*)this) == badHeapWordVal) {
|
if (*((juint*)this) == badHeapWordVal) {
|
||||||
st->print("BAD WORD");
|
st->print_cr("BAD WORD");
|
||||||
} else if (*((juint*)this) == badMetaWordVal) {
|
} else if (*((juint*)this) == badMetaWordVal) {
|
||||||
st->print("BAD META WORD");
|
st->print_cr("BAD META WORD");
|
||||||
} else {
|
} else {
|
||||||
klass()->oop_print_on(cast_to_oop(this), st);
|
klass()->oop_print_on(cast_to_oop(this), st);
|
||||||
}
|
}
|
||||||
|
@ -403,9 +403,9 @@ template void stackChunkOopDesc::fix_thawed_frame(const frame& f, const SmallReg
|
|||||||
|
|
||||||
void stackChunkOopDesc::print_on(bool verbose, outputStream* st) const {
|
void stackChunkOopDesc::print_on(bool verbose, outputStream* st) const {
|
||||||
if (*((juint*)this) == badHeapWordVal) {
|
if (*((juint*)this) == badHeapWordVal) {
|
||||||
st->print("BAD WORD");
|
st->print_cr("BAD WORD");
|
||||||
} else if (*((juint*)this) == badMetaWordVal) {
|
} else if (*((juint*)this) == badMetaWordVal) {
|
||||||
st->print("BAD META WORD");
|
st->print_cr("BAD META WORD");
|
||||||
} else {
|
} else {
|
||||||
InstanceStackChunkKlass::print_chunk(const_cast<stackChunkOopDesc*>(this), verbose, st);
|
InstanceStackChunkKlass::print_chunk(const_cast<stackChunkOopDesc*>(this), verbose, st);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user