hotspot/src/share/vm/opto/loopopts.cpp
changeset 27707 f7d26e5b8b5d
parent 25930 eae8b7490d2c
child 28036 0365e6e60e1a
equal deleted inserted replaced
27706:3f10f4ac2bd6 27707:f7d26e5b8b5d
   734   // Bail out if the region and its phis have too many users.
   734   // Bail out if the region and its phis have too many users.
   735   int weight = 0;
   735   int weight = 0;
   736   for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) {
   736   for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) {
   737     weight += region->fast_out(i)->outcnt();
   737     weight += region->fast_out(i)->outcnt();
   738   }
   738   }
   739   int nodes_left = MaxNodeLimit - C->live_nodes();
   739   int nodes_left = C->max_node_limit() - C->live_nodes();
   740   if (weight * 8 > nodes_left) {
   740   if (weight * 8 > nodes_left) {
   741 #ifndef PRODUCT
   741 #ifndef PRODUCT
   742     if (PrintOpto)
   742     if (PrintOpto)
   743       tty->print_cr("*** Split-if bails out:  %d nodes, region weight %d", C->unique(), weight);
   743       tty->print_cr("*** Split-if bails out:  %d nodes, region weight %d", C->unique(), weight);
   744 #endif
   744 #endif