diff src/share/vm/opto/node.cpp @ 8116:6931f425c517

8007294: ReduceFieldZeroing doesn't check for dependent load and can lead to incorrect execution Summary: InitializeNode::can_capture_store() must check that the captured store doesn't overwrite a memory location that is loaded before the store. Reviewed-by: kvn
author roland
date Mon, 25 Feb 2013 14:13:04 +0100
parents 8b3da8d14c93
children 6f3fd5150b67
line wrap: on
line diff
--- a/src/share/vm/opto/node.cpp	Fri Feb 22 10:12:00 2013 -0800
+++ b/src/share/vm/opto/node.cpp	Mon Feb 25 14:13:04 2013 +0100
@@ -1261,6 +1261,7 @@
       if (dead->is_expensive()) {
         igvn->C->remove_expensive_node(dead);
       }
+      igvn->C->record_dead_node(dead->_idx);
       // Kill all inputs to the dead guy
       for (uint i=0; i < dead->req(); i++) {
         Node *n = dead->in(i);      // Get input to dead guy