src/hotspot/share/gc/z/zHeap.cpp
changeset 55285 9a120214e732
parent 55284 38006f020b94
child 55307 ed12027517c0
equal deleted inserted replaced
55284:38006f020b94 55285:9a120214e732
    77   // Install global heap instance
    77   // Install global heap instance
    78   assert(_heap == NULL, "Already initialized");
    78   assert(_heap == NULL, "Already initialized");
    79   _heap = this;
    79   _heap = this;
    80 
    80 
    81   // Update statistics
    81   // Update statistics
    82   ZStatHeap::set_at_initialize(heap_max_size(), heap_max_reserve_size());
    82   ZStatHeap::set_at_initialize(heap_min_size(), heap_max_size(), heap_max_reserve_size());
    83 }
    83 }
    84 
    84 
    85 size_t ZHeap::heap_min_size() const {
    85 size_t ZHeap::heap_min_size() const {
    86   return MinHeapSize;
    86   return MinHeapSize;
    87 }
    87 }
   315 
   315 
   316   // Reset marking information and mark roots
   316   // Reset marking information and mark roots
   317   _mark.start();
   317   _mark.start();
   318 
   318 
   319   // Update statistics
   319   // Update statistics
   320   ZStatHeap::set_at_mark_start(capacity(), used());
   320   ZStatHeap::set_at_mark_start(soft_max_capacity(), capacity(), used());
   321 }
   321 }
   322 
   322 
   323 void ZHeap::mark(bool initial) {
   323 void ZHeap::mark(bool initial) {
   324   _mark.mark(initial);
   324   _mark.mark(initial);
   325 }
   325 }