--- old/src/share/vm/opto/loopopts.cpp Tue Jul 14 18:25:39 2009 +++ new/src/share/vm/opto/loopopts.cpp Tue Jul 14 18:25:39 2009 @@ -655,7 +655,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 = C->nodes_limit() - C->unique(); if (weight * 8 > nodes_left) { #ifndef PRODUCT if (PrintOpto)