hotspot/src/share/vm/opto/loopUnswitch.cpp
changeset 14623 70c4c1be0a14
parent 13963 e5b53c306fb5
child 23528 8f1a7f5e8066
--- a/hotspot/src/share/vm/opto/loopUnswitch.cpp	Tue Nov 27 12:48:52 2012 -0800
+++ b/hotspot/src/share/vm/opto/loopUnswitch.cpp	Tue Nov 27 17:24:15 2012 -0800
@@ -59,7 +59,7 @@
   if (!_head->is_Loop()) {
     return false;
   }
-  uint nodes_left = MaxNodeLimit - phase->C->unique();
+  uint nodes_left = MaxNodeLimit - phase->C->live_nodes();
   if (2 * _body.size() > nodes_left) {
     return false; // Too speculative if running low on nodes.
   }