diff src/share/vm/opto/idealGraphPrinter.cpp @ 12889:90abdd727e64

8009303: Tiered: incorrect results in VM tests stringconcat with -Xcomp -XX:+DeoptimizeALot on solaris-amd64 Summary: Do memory flow analysis in string concat optimizier to exclude cases when computation of arguments to StringBuffer::append has side effects Reviewed-by: kvn, twisti
author iveresov
date Wed, 16 Oct 2013 11:13:15 -0700
parents 650868c062a9
children 4cdf4f71177d
line wrap: on
line diff
--- a/src/share/vm/opto/idealGraphPrinter.cpp	Fri Oct 11 12:06:14 2013 +0200
+++ b/src/share/vm/opto/idealGraphPrinter.cpp	Wed Oct 16 11:13:15 2013 -0700
@@ -616,7 +616,11 @@
       buffer[0] = 0;
       _chaitin->dump_register(node, buffer);
       print_prop("reg", buffer);
-      print_prop("lrg", _chaitin->_lrg_map.live_range_id(node));
+      uint lrg_id = 0;
+      if (node->_idx < _chaitin->_lrg_map.size()) {
+        lrg_id = _chaitin->_lrg_map.live_range_id(node);
+      }
+      print_prop("lrg", lrg_id);
     }
 
     node->_in_dump_cnt--;