--- a/hotspot/src/share/vm/opto/loopTransform.cpp Wed Feb 03 09:09:56 2016 +0100
+++ b/hotspot/src/share/vm/opto/loopTransform.cpp Wed Feb 03 10:58:50 2016 +0100
@@ -3048,7 +3048,7 @@
// state of the loop. It's safe in this case to replace it with the
// result_mem.
_igvn.replace_node(store->in(MemNode::Memory), result_mem);
- _igvn.replace_node(exit, result_ctrl);
+ lazy_replace(exit, result_ctrl);
_igvn.replace_node(store, result_mem);
// Any uses the increment outside of the loop become the loop limit.
_igvn.replace_node(head->incr(), head->limit());