1.1 --- a/src/share/vm/opto/node.cpp Wed Apr 23 12:37:36 2014 +0200 1.2 +++ b/src/share/vm/opto/node.cpp Wed Aug 13 11:00:22 2014 +0200 1.3 @@ -527,6 +527,9 @@ 1.4 if (n->is_Call()) { 1.5 n->as_Call()->clone_jvms(C); 1.6 } 1.7 + if (n->is_SafePoint()) { 1.8 + n->as_SafePoint()->clone_replaced_nodes(); 1.9 + } 1.10 return n; // Return the clone 1.11 } 1.12 1.13 @@ -622,6 +625,9 @@ 1.14 if (is_expensive()) { 1.15 compile->remove_expensive_node(this); 1.16 } 1.17 + if (is_SafePoint()) { 1.18 + as_SafePoint()->delete_replaced_nodes(); 1.19 + } 1.20 #ifdef ASSERT 1.21 // We will not actually delete the storage, but we'll make the node unusable. 1.22 *(address*)this = badAddress; // smash the C++ vtbl, probably