8000227: [obj|type]ArrayKlass::oop_print_on prints one line to tty instead of the provided output stream
Reviewed-by: brutisso, sla, jmasa, coleenp
--- a/hotspot/src/share/vm/oops/objArrayKlass.cpp Fri Sep 28 15:34:32 2012 +0200
+++ b/hotspot/src/share/vm/oops/objArrayKlass.cpp Mon Oct 01 13:29:11 2012 +0200
@@ -646,7 +646,7 @@
}
int remaining = oa->length() - print_len;
if (remaining > 0) {
- tty->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining);
+ st->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining);
}
}
--- a/hotspot/src/share/vm/oops/typeArrayKlass.cpp Fri Sep 28 15:34:32 2012 +0200
+++ b/hotspot/src/share/vm/oops/typeArrayKlass.cpp Mon Oct 01 13:29:11 2012 +0200
@@ -381,7 +381,7 @@
}
int remaining = ta->length() - print_len;
if (remaining > 0) {
- tty->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining);
+ st->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining);
}
}