hotspot/src/share/vm/opto/node.cpp
changeset 14841 d069f5506f71
parent 14623 70c4c1be0a14
child 15241 87d217c2d183
--- a/hotspot/src/share/vm/opto/node.cpp	Mon Dec 17 08:49:20 2012 +0100
+++ b/hotspot/src/share/vm/opto/node.cpp	Mon Dec 17 15:25:26 2012 +0100
@@ -1839,15 +1839,16 @@
   return idx;                   // True for other than index 0 (control)
 }
 
+static RegMask _not_used_at_all;
 // Register classes are defined for specific machines
 const RegMask &Node::out_RegMask() const {
   ShouldNotCallThis();
-  return *(new RegMask());
+  return _not_used_at_all;
 }
 
 const RegMask &Node::in_RegMask(uint) const {
   ShouldNotCallThis();
-  return *(new RegMask());
+  return _not_used_at_all;
 }
 
 //=============================================================================