@@ -227,13 +227,16 @@ class G1CollectionSet {
227227 uint& num_optional_regions,
228228 double & predicted_optional_time_ms,
229229 double predicted_time_ms);
230+
230231public:
231232 G1CollectionSet (G1CollectedHeap* g1h, G1Policy* policy);
232233 ~G1CollectionSet ();
233234
234235 // Initializes the collection set giving the maximum possible length of the collection set.
235236 void initialize (uint max_region_length);
236237
238+ // Drop the collection set and collection set candidates.
239+ void abandon ();
237240 // Drop all collection set candidates (only the candidates).
238241 void abandon_all_candidates ();
239242
@@ -261,13 +264,15 @@ class G1CollectionSet {
261264 template <class CardOrRangeVisitor >
262265 inline void merge_cardsets_for_collection_groups (CardOrRangeVisitor& cl, uint worker_id, uint num_workers);
263266
267+ uint groups_increment_length () const ;
268+
264269 // Reset the contents of the collection set.
265270 void clear ();
266271
267272 // Incremental collection set support
268273
269- // Initialize incremental collection set info .
270- void start_incremental_building ();
274+ // Start a new collection set for the next mutator phase .
275+ void start ();
271276 // Start a new collection set increment, continuing the incremental building.
272277 void continue_incremental_building ();
273278 // Stop adding regions to the current collection set increment.
@@ -282,8 +287,6 @@ class G1CollectionSet {
282287 // Returns the length of the whole current collection set in number of regions
283288 size_t cur_length () const { return _regions_cur_length; }
284289
285- uint groups_increment_length () const ;
286-
287290 // Iterate over the entire collection set (all increments calculated so far), applying
288291 // the given G1HeapRegionClosure on all of the regions.
289292 void iterate(G1HeapRegionClosure* cl) const ;
0 commit comments