--- old/src/hotspot/share/gc/g1/g1SurvivorRegions.hpp 2019-11-04 19:56:31.096921930 -0800 +++ new/src/hotspot/share/gc/g1/g1SurvivorRegions.hpp 2019-11-04 19:56:30.712921918 -0800 @@ -25,6 +25,7 @@ #ifndef SHARE_GC_G1_G1SURVIVORREGIONS_HPP #define SHARE_GC_G1_G1SURVIVORREGIONS_HPP +#include "gc/g1/g1RegionsOnNodes.hpp" #include "runtime/globals.hpp" template @@ -35,17 +36,19 @@ private: GrowableArray* _regions; volatile size_t _used_bytes; + G1RegionsOnNodes _regions_on_node; public: G1SurvivorRegions(); - void add(HeapRegion* hr); + virtual uint add(HeapRegion* hr); void convert_to_eden(); void clear(); uint length() const; + uint regions_on_node(uint node_index) const; const GrowableArray* regions() const { return _regions;