hotspot/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
changeset 17396 4d281f3a57bf
parent 16993 c9fd6b7ef40e
child 18025 b7bcf7497f93
equal deleted inserted replaced
17395:2cd3ef1be718 17396:4d281f3a57bf
   173   }
   173   }
   174 
   174 
   175   CollectionSetChooser* _collectionSetChooser;
   175   CollectionSetChooser* _collectionSetChooser;
   176 
   176 
   177   double _full_collection_start_sec;
   177   double _full_collection_start_sec;
   178   size_t _cur_collection_pause_used_at_start_bytes;
       
   179   uint   _cur_collection_pause_used_regions_at_start;
   178   uint   _cur_collection_pause_used_regions_at_start;
   180 
   179 
   181   // These exclude marking times.
   180   // These exclude marking times.
   182   TruncatedSeq* _recent_gc_times_ms;
   181   TruncatedSeq* _recent_gc_times_ms;
   183 
   182 
   192   // indicates whether we are in young or mixed GC mode
   191   // indicates whether we are in young or mixed GC mode
   193   bool _gcs_are_young;
   192   bool _gcs_are_young;
   194 
   193 
   195   uint _young_list_target_length;
   194   uint _young_list_target_length;
   196   uint _young_list_fixed_length;
   195   uint _young_list_fixed_length;
   197   size_t _prev_eden_capacity; // used for logging
       
   198 
   196 
   199   // The max number of regions we can extend the eden by while the GC
   197   // The max number of regions we can extend the eden by while the GC
   200   // locker is active. This should be >= _young_list_target_length;
   198   // locker is active. This should be >= _young_list_target_length;
   201   uint _young_list_max_length;
   199   uint _young_list_max_length;
   202 
   200 
   691   void record_concurrent_mark_cleanup_end(int no_of_gc_threads);
   689   void record_concurrent_mark_cleanup_end(int no_of_gc_threads);
   692   void record_concurrent_mark_cleanup_completed();
   690   void record_concurrent_mark_cleanup_completed();
   693 
   691 
   694   // Records the information about the heap size for reporting in
   692   // Records the information about the heap size for reporting in
   695   // print_detailed_heap_transition
   693   // print_detailed_heap_transition
   696   void record_heap_size_info_at_start();
   694   void record_heap_size_info_at_start(bool full);
   697 
   695 
   698   // Print heap sizing transition (with less and more detail).
   696   // Print heap sizing transition (with less and more detail).
   699   void print_heap_transition();
   697   void print_heap_transition();
   700   void print_detailed_heap_transition();
   698   void print_detailed_heap_transition(bool full = false);
   701 
   699 
   702   void record_stop_world_start();
   700   void record_stop_world_start();
   703   void record_concurrent_pause();
   701   void record_concurrent_pause();
   704 
   702 
   705   // Record how much space we copied during a GC. This is typically
   703   // Record how much space we copied during a GC. This is typically
   859 
   857 
   860   // The limit on the number of regions allocated for survivors.
   858   // The limit on the number of regions allocated for survivors.
   861   uint _max_survivor_regions;
   859   uint _max_survivor_regions;
   862 
   860 
   863   // For reporting purposes.
   861   // For reporting purposes.
   864   size_t _eden_bytes_before_gc;
   862   // The value of _heap_bytes_before_gc is also used to calculate
   865   size_t _survivor_bytes_before_gc;
   863   // the cost of copying.
   866   size_t _capacity_before_gc;
   864 
       
   865   size_t _eden_used_bytes_before_gc;         // Eden occupancy before GC
       
   866   size_t _survivor_used_bytes_before_gc;     // Survivor occupancy before GC
       
   867   size_t _heap_used_bytes_before_gc;         // Heap occupancy before GC
       
   868   size_t _metaspace_used_bytes_before_gc;    // Metaspace occupancy before GC
       
   869 
       
   870   size_t _eden_capacity_bytes_before_gc;     // Eden capacity before GC
       
   871   size_t _heap_capacity_bytes_before_gc;     // Heap capacity before GC
   867 
   872 
   868   // The amount of survivor regions after a collection.
   873   // The amount of survivor regions after a collection.
   869   uint _recorded_survivor_regions;
   874   uint _recorded_survivor_regions;
   870   // List of survivor regions.
   875   // List of survivor regions.
   871   HeapRegion* _recorded_survivor_head;
   876   HeapRegion* _recorded_survivor_head;