< prev index next >

src/hotspot/share/gc/g1/g1CollectionSet.hpp

Print this page

        

@@ -34,11 +34,10 @@
 class G1GCPhaseTimes;
 class G1ParScanThreadStateSet;
 class G1Policy;
 class G1SurvivorRegions;
 class HeapRegion;
-class HeapRegionClaimer;
 class HeapRegionClosure;
 
 // The collection set.
 //
 // The set of regions that are evacuated during an evacuation pause.

@@ -162,11 +161,11 @@
   size_t _bytes_used_before;
 
   // The number of cards in the remembered set in the collection set. Set from
   // the incrementally built collection set at the start of an evacuation
   // pause, and updated as more regions are added to the collection set.
-  size_t _recorded_rs_length;
+  size_t _recorded_rs_lengths;
 
   enum CSetBuildType {
     Active,             // We are actively building the collection set
     Inactive            // We are not actively building the collection set
   };

@@ -186,29 +185,29 @@
   // The RSet lengths recorded for regions in the CSet. It is updated
   // by the thread that adds a new region to the CSet. We assume that
   // only one thread can be allocating a new CSet region (currently,
   // it does so after taking the Heap_lock) hence no need to
   // synchronize updates to this field.
-  size_t _inc_recorded_rs_length;
+  size_t _inc_recorded_rs_lengths;
 
   // A concurrent refinement thread periodically samples the young
-  // region RSets and needs to update _inc_recorded_rs_length as
+  // region RSets and needs to update _inc_recorded_rs_lengths as
   // the RSets grow. Instead of having to synchronize updates to that
   // field we accumulate them in this field and add it to
-  // _inc_recorded_rs_length_diff at the start of a GC.
-  ssize_t _inc_recorded_rs_length_diff;
+  // _inc_recorded_rs_lengths_diffs at the start of a GC.
+  ssize_t _inc_recorded_rs_lengths_diffs;
 
   // The predicted elapsed time it will take to collect the regions in
   // the CSet. This is updated by the thread that adds a new region to
-  // the CSet. See the comment for _inc_recorded_rs_length about
+  // the CSet. See the comment for _inc_recorded_rs_lengths about
   // MT-safety assumptions.
   double _inc_predicted_elapsed_time_ms;
 
-  // See the comment for _inc_recorded_rs_length_diff.
-  double _inc_predicted_elapsed_time_ms_diff;
+  // See the comment for _inc_recorded_rs_lengths_diffs.
+  double _inc_predicted_elapsed_time_ms_diffs;
 
-  void set_recorded_rs_length(size_t rs_length);
+  void set_recorded_rs_lengths(size_t rs_lengths);
 
   G1CollectorState* collector_state();
   G1GCPhaseTimes* phase_times();
 
   void verify_young_cset_indices() const NOT_DEBUG_RETURN;

@@ -278,24 +277,19 @@
   // Stop adding regions to the current collection set increment.
   void stop_incremental_building() { _inc_build_state = Inactive; }
 
   // Iterate over the current collection set increment applying the given HeapRegionClosure
   // from a starting position determined by the given worker id.
-  void iterate_incremental_part_from(HeapRegionClosure* cl, HeapRegionClaimer* hr_claimer, uint worker_id, uint total_workers) const;
-
-  // Returns the length of the current increment in number of regions.
-  size_t increment_length() const { return _collection_set_cur_length - _inc_part_start; }
-  // Returns the length of the whole current collection set in number of regions
-  size_t cur_length() const { return _collection_set_cur_length; }
+  void iterate_incremental_part_from(HeapRegionClosure* cl, uint worker_id, uint total_workers) const;
 
   // Iterate over the entire collection set (all increments calculated so far), applying
   // the given HeapRegionClosure on all of them.
   void iterate(HeapRegionClosure* cl) const;
 
   void iterate_optional(HeapRegionClosure* cl) const;
 
-  size_t recorded_rs_length() { return _recorded_rs_length; }
+  size_t recorded_rs_lengths() { return _recorded_rs_lengths; }
 
   size_t bytes_used_before() const {
     return _bytes_used_before;
   }
 
< prev index next >