8048703: ReplacedNodes dumps it's content to tty
authorvlivanov
Mon, 14 Jul 2014 03:29:42 -0700
changeset 25645 0bcfdc697031
parent 25644 5319fc0701c7
child 25646 1d1a8596d06e
child 25732 e2c1d053a55f
8048703: ReplacedNodes dumps it's content to tty Reviewed-by: roland, iveresov, drchase
hotspot/src/share/vm/opto/replacednodes.cpp
--- a/hotspot/src/share/vm/opto/replacednodes.cpp	Mon Jul 14 03:28:13 2014 -0700
+++ b/hotspot/src/share/vm/opto/replacednodes.cpp	Mon Jul 14 03:29:42 2014 -0700
@@ -185,11 +185,11 @@
 
 void ReplacedNodes::dump(outputStream *st) const {
   if (!is_empty()) {
-    tty->print("replaced nodes: ");
+    st->print("replaced nodes: ");
     for (int i = 0; i < _replaced_nodes->length(); i++) {
-      tty->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
+      st->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
       if (i < _replaced_nodes->length()-1) {
-        tty->print(",");
+        st->print(",");
       }
     }
   }