hotspot/src/share/vm/opto/phaseX.cpp
changeset 15113 823590505eb4
parent 14623 70c4c1be0a14
child 15618 3eb521896836
--- a/hotspot/src/share/vm/opto/phaseX.cpp	Fri Dec 21 10:27:49 2012 -0800
+++ b/hotspot/src/share/vm/opto/phaseX.cpp	Sun Dec 23 17:08:22 2012 +0100
@@ -75,6 +75,13 @@
   // nh->_sentinel must be in the current node space
 }
 
+void NodeHash::replace_with(NodeHash *nh) {
+  debug_only(_table = (Node**)badAddress);   // interact correctly w/ operator=
+  // just copy in all the fields
+  *this = *nh;
+  // nh->_sentinel must be in the current node space
+}
+
 //------------------------------hash_find--------------------------------------
 // Find in hash table
 Node *NodeHash::hash_find( const Node *n ) {