< prev index next >

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

Print this page
rev 52675 : 8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
Reviewed-by:
Contributed-by: erik.helin@oracle.com, stefan.johansson@oracle.com
rev 52676 : imported patch AMGC-impl
rev 52677 : imported patch AMGC-tsch-rev1
rev 52678 : imported patch AMGC-tsch-rev1-optcset
rev 52681 : [mq]: AMGC-kbar-rev1

@@ -30,10 +30,11 @@
 #include "utilities/globalDefinitions.hpp"
 
 class G1CollectedHeap;
 class G1CollectorState;
 class G1GCPhaseTimes;
+class G1ParScanThreadStateSet;
 class G1Policy;
 class G1SurvivorRegions;
 class HeapRegion;
 
 class G1CollectionSet {

@@ -232,22 +233,24 @@
 
 // Helper class to manage the optional regions in a Mixed collection.
 class G1OptionalCSet : public StackObj {
 private:
   G1CollectionSet* _cset;
+  G1ParScanThreadStateSet* _pset;
   uint _current_index;
   uint _current_limit;
   bool _prepare_failed;
   bool _evacuation_failed;
 
   void prepare_to_evacuate_optional_region(HeapRegion* hr);
 
 public:
   static const uint InvalidCSetIndex = UINT_MAX;
 
-  G1OptionalCSet(G1CollectionSet* cset) :
+  G1OptionalCSet(G1CollectionSet* cset, G1ParScanThreadStateSet* pset) :
     _cset(cset),
+    _pset(pset),
     _current_index(0),
     _current_limit(0),
     _prepare_failed(false),
     _evacuation_failed(false) { }
   // The destructor returns regions to the cset-chooser and
< prev index next >