hotspot/src/share/vm/opto/loopopts.cpp
changeset 27707 f7d26e5b8b5d
parent 25930 eae8b7490d2c
child 28036 0365e6e60e1a
--- a/hotspot/src/share/vm/opto/loopopts.cpp	Mon Nov 24 08:48:15 2014 +0100
+++ b/hotspot/src/share/vm/opto/loopopts.cpp	Mon Nov 24 07:29:03 2014 -0800
@@ -736,7 +736,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)