< prev index next > src/hotspot/share/opto/block.cpp
Print this page
#include "opto/opcodes.hpp"
#include "opto/rootnode.hpp"
#include "utilities/copy.hpp"
#include "utilities/powerOfTwo.hpp"
! void Block_Array::grow( uint i ) {
! _nesting.check(_arena); // Check if a potential reallocation in the arena is safe
- if (i < Max()) {
- return; // No need to grow
- }
DEBUG_ONLY(_limit = i+1);
if( i < _size ) return;
if( !_size ) {
_size = 1;
_blocks = (Block**)_arena->Amalloc( _size * sizeof(Block*) );
#include "opto/opcodes.hpp"
#include "opto/rootnode.hpp"
#include "utilities/copy.hpp"
#include "utilities/powerOfTwo.hpp"
! void Block_Array::grow(uint i) {
! assert(i >= Max(), "Should have been checked before, use maybe_grow?");
DEBUG_ONLY(_limit = i+1);
if( i < _size ) return;
if( !_size ) {
_size = 1;
_blocks = (Block**)_arena->Amalloc( _size * sizeof(Block*) );
< prev index next >