--- old/src/share/vm/opto/loopopts.cpp 2014-11-18 12:35:21.200727488 -0800 +++ new/src/share/vm/opto/loopopts.cpp 2014-11-18 12:35:20.627723946 -0800 @@ -734,7 +734,7 @@ for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) { weight += region->fast_out(i)->outcnt(); } - int nodes_left = MaxNodeLimit - C->live_nodes(); + int nodes_left = C->max_node_limit() - C->live_nodes(); if (weight * 8 > nodes_left) { #ifndef PRODUCT if (PrintOpto)