--- old/src/hotspot/share/gc/g1/heapRegionRemSet.hpp 2018-10-30 10:34:46.844309271 +0100 +++ new/src/hotspot/share/gc/g1/heapRegionRemSet.hpp 2018-10-30 10:34:46.423296328 +0100 @@ -187,8 +187,12 @@ static void setup_remset_size(); + bool cardset_is_empty() const { + return _other_regions.is_empty(); + } + bool is_empty() const { - return (strong_code_roots_list_length() == 0) && _other_regions.is_empty(); + return (strong_code_roots_list_length() == 0) && cardset_is_empty(); } bool occupancy_less_or_equal_than(size_t occ) const { @@ -353,7 +357,7 @@ }; class HeapRegionRemSetIterator : public StackObj { - private: +private: // The region RSet over which we are iterating. HeapRegionRemSet* _hrrs; @@ -401,7 +405,7 @@ // The Sparse remembered set iterator. SparsePRTIter _sparse_iter; - public: +public: HeapRegionRemSetIterator(HeapRegionRemSet* hrrs); // If there remains one or more cards to be yielded, returns true and