src/share/vm/opto/loopUnswitch.cpp

changeset 7385
9e69e8d1c900
parent 4315
2aff40cb4703
child 7535
7ae4e26cb1e0
     1.1 --- a/src/share/vm/opto/loopUnswitch.cpp	Tue Nov 11 04:46:13 2014 -0800
     1.2 +++ b/src/share/vm/opto/loopUnswitch.cpp	Mon Nov 24 07:29:03 2014 -0800
     1.3 @@ -59,8 +59,8 @@
     1.4    if (!_head->is_Loop()) {
     1.5      return false;
     1.6    }
     1.7 -  uint nodes_left = MaxNodeLimit - phase->C->live_nodes();
     1.8 -  if (2 * _body.size() > nodes_left) {
     1.9 +  int nodes_left = phase->C->max_node_limit() - phase->C->live_nodes();
    1.10 +  if ((int)(2 * _body.size()) > nodes_left) {
    1.11      return false; // Too speculative if running low on nodes.
    1.12    }
    1.13    LoopNode* head = _head->as_Loop();

mercurial