src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp
changeset 51334 cc2c79d22508
parent 50811 f533eb5e7430
child 53970 1ad7c590a6e7
equal deleted inserted replaced
51333:f6641fcf7b7e 51334:cc2c79d22508
    55   return false;
    55   return false;
    56 }
    56 }
    57 
    57 
    58 // byte_size is the size of the associated virtualspace.
    58 // byte_size is the size of the associated virtualspace.
    59 VirtualSpaceNode::VirtualSpaceNode(bool is_class, size_t bytes) :
    59 VirtualSpaceNode::VirtualSpaceNode(bool is_class, size_t bytes) :
    60     _is_class(is_class), _top(NULL), _next(NULL), _rs(), _container_count(0), _occupancy_map(NULL) {
    60     _next(NULL), _is_class(is_class), _rs(), _top(NULL), _container_count(0), _occupancy_map(NULL) {
    61   assert_is_aligned(bytes, Metaspace::reserve_alignment());
    61   assert_is_aligned(bytes, Metaspace::reserve_alignment());
    62   bool large_pages = should_commit_large_pages_when_reserving(bytes);
    62   bool large_pages = should_commit_large_pages_when_reserving(bytes);
    63   _rs = ReservedSpace(bytes, Metaspace::reserve_alignment(), large_pages);
    63   _rs = ReservedSpace(bytes, Metaspace::reserve_alignment(), large_pages);
    64 
    64 
    65   if (_rs.is_reserved()) {
    65   if (_rs.is_reserved()) {