1.1 --- a/src/share/vm/opto/loopUnswitch.cpp Tue Nov 27 12:48:52 2012 -0800 1.2 +++ b/src/share/vm/opto/loopUnswitch.cpp Tue Nov 27 17:24:15 2012 -0800 1.3 @@ -59,7 +59,7 @@ 1.4 if (!_head->is_Loop()) { 1.5 return false; 1.6 } 1.7 - uint nodes_left = MaxNodeLimit - phase->C->unique(); 1.8 + uint nodes_left = MaxNodeLimit - phase->C->live_nodes(); 1.9 if (2 * _body.size() > nodes_left) { 1.10 return false; // Too speculative if running low on nodes. 1.11 }