changeset 14623 | 70c4c1be0a14 |
parent 13974 | 791cba24758f |
child 16375 | d27fedd8b2b2 |
--- a/hotspot/src/share/vm/opto/loopopts.cpp Tue Nov 27 12:48:52 2012 -0800 +++ b/hotspot/src/share/vm/opto/loopopts.cpp Tue Nov 27 17:24:15 2012 -0800 @@ -729,7 +729,7 @@ for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) { weight += region->fast_out(i)->outcnt(); } - int nodes_left = MaxNodeLimit - C->unique(); + int nodes_left = MaxNodeLimit - C->live_nodes(); if (weight * 8 > nodes_left) { #ifndef PRODUCT if (PrintOpto)