--- old/src/hotspot/share/gc/g1/heapRegion.hpp 2018-11-27 20:24:36.807240666 +0100 +++ new/src/hotspot/share/gc/g1/heapRegion.hpp 2018-11-27 20:24:36.411238702 +0100 @@ -250,6 +250,9 @@ // The calculated GC efficiency of the region. double _gc_efficiency; + // The index in the optional regions array, if this region + // is considered optional during a mixed collections. + uint _index_in_opt_cset; int _young_index_in_cset; SurvRateGroup* _surv_rate_group; int _age_index; @@ -554,6 +557,9 @@ void calc_gc_efficiency(void); double gc_efficiency() { return _gc_efficiency;} + uint index_in_opt_cset() const { return _index_in_opt_cset; } + void set_index_in_opt_cset(uint index) { _index_in_opt_cset = index; } + int young_index_in_cset() const { return _young_index_in_cset; } void set_young_index_in_cset(int index) { assert( (index == -1) || is_young(), "pre-condition" );