src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp

Print this page
rev 6670 : fast reclaim main patch

@@ -693,10 +693,13 @@
   // Since we may have deleted a from_card_cache entry from the RS, clear
   // the FCC.
   clear_fcc();
 }
 
+bool OtherRegionsTable::is_empty() const {
+  return occ_sparse() == 0 && occ_coarse() == 0 && _first_all_fine_prts == NULL;
+}
 
 size_t OtherRegionsTable::occupied() const {
   size_t sum = occ_fine();
   sum += occ_sparse();
   sum += occ_coarse();