src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp
changeset 50286 cbc4fca9171e
parent 50193 49c3e91c424f
child 50811 f533eb5e7430
equal deleted inserted replaced
50285:5b6bdc59f8cc 50286:cbc4fca9171e
   519   if (result) {
   519   if (result) {
   520     assert(virtual_space()->committed_size() == virtual_space()->actual_committed_size(),
   520     assert(virtual_space()->committed_size() == virtual_space()->actual_committed_size(),
   521         "Checking that the pre-committed memory was registered by the VirtualSpace");
   521         "Checking that the pre-committed memory was registered by the VirtualSpace");
   522 
   522 
   523     set_top((MetaWord*)virtual_space()->low());
   523     set_top((MetaWord*)virtual_space()->low());
   524     set_reserved(MemRegion((HeapWord*)_rs.base(),
       
   525         (HeapWord*)(_rs.base() + _rs.size())));
       
   526 
       
   527     assert(reserved()->start() == (HeapWord*) _rs.base(),
       
   528         "Reserved start was not set properly " PTR_FORMAT
       
   529         " != " PTR_FORMAT, p2i(reserved()->start()), p2i(_rs.base()));
       
   530     assert(reserved()->word_size() == _rs.size() / BytesPerWord,
       
   531         "Reserved size was not set properly " SIZE_FORMAT
       
   532         " != " SIZE_FORMAT, reserved()->word_size(),
       
   533         _rs.size() / BytesPerWord);
       
   534   }
   524   }
   535 
   525 
   536   // Initialize Occupancy Map.
   526   // Initialize Occupancy Map.
   537   const size_t smallest_chunk_size = is_class() ? ClassSpecializedChunk : SpecializedChunk;
   527   const size_t smallest_chunk_size = is_class() ? ClassSpecializedChunk : SpecializedChunk;
   538   _occupancy_map = new OccupancyMap(bottom(), reserved_words(), smallest_chunk_size);
   528   _occupancy_map = new OccupancyMap(bottom(), reserved_words(), smallest_chunk_size);