8000227: [obj|type]ArrayKlass::oop_print_on prints one line to tty instead of the provided output stream
authorstefank
Mon, 01 Oct 2012 13:29:11 +0200
changeset 13922 ab7d352debe6
parent 13921 cfc740741651
child 13923 4271ff38528f
8000227: [obj|type]ArrayKlass::oop_print_on prints one line to tty instead of the provided output stream Reviewed-by: brutisso, sla, jmasa, coleenp
hotspot/src/share/vm/oops/objArrayKlass.cpp
hotspot/src/share/vm/oops/typeArrayKlass.cpp
--- 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);
   }
 }