--- old/src/hotspot/share/gc/g1/g1CollectionSet.hpp 2018-11-27 18:26:13.516017347 +0100 +++ new/src/hotspot/share/gc/g1/g1CollectionSet.hpp 2018-11-27 18:26:13.092015244 +0100 @@ -32,6 +32,7 @@ class G1CollectedHeap; class G1CollectorState; class G1GCPhaseTimes; +class G1ParScanThreadStateSet; class G1Policy; class G1SurvivorRegions; class HeapRegion; @@ -234,6 +235,7 @@ class G1OptionalCSet : public StackObj { private: G1CollectionSet* _cset; + G1ParScanThreadStateSet* _pset; uint _current_index; uint _current_limit; bool _prepare_failed; @@ -244,8 +246,9 @@ 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),