< prev index next >

src/hotspot/share/opto/node.cpp

Print this page
*** 2796,11 ***
    ShouldNotCallThis();
    return RegMask::Empty;
  }
  
  void Node_Array::grow(uint i) {
-   _nesting.check(_a); // Check if a potential reallocation in the arena is safe
    assert(i >= _max, "Should have been checked before, use maybe_grow?");
    assert(_max > 0, "invariant");
    uint old = _max;
    _max = next_power_of_2(i);
    _nodes = (Node**)_a->Arealloc( _nodes, old*sizeof(Node*),_max*sizeof(Node*));
--- 2796,10 ---

*** 3036,14 ***
    }
  }
  
  //=============================================================================
  void Node_Stack::grow() {
-   _nesting.check(_a); // Check if a potential reallocation in the arena is safe
-   if (_inode_top < _inode_max) {
-     return; // No need to grow
-   }
    size_t old_top = pointer_delta(_inode_top,_inodes,sizeof(INode)); // save _top
    size_t old_max = pointer_delta(_inode_max,_inodes,sizeof(INode));
    size_t max = old_max << 1;             // max * 2
    _inodes = REALLOC_ARENA_ARRAY(_a, INode, _inodes, old_max, max);
    _inode_max = _inodes + max;
--- 3035,10 ---
< prev index next >