1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp Fri May 15 06:47:56 2015 +0000 1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp Wed Jan 07 15:15:37 2015 +0100 1.3 @@ -694,6 +694,18 @@ 1.4 clear_fcc(); 1.5 } 1.6 1.7 +bool OtherRegionsTable::occupancy_less_or_equal_than(size_t limit) const { 1.8 + if (limit <= (size_t)G1RSetSparseRegionEntries) { 1.9 + return occ_coarse() == 0 && _first_all_fine_prts == NULL && occ_sparse() <= limit; 1.10 + } else { 1.11 + // Current uses of this method may only use values less than G1RSetSparseRegionEntries 1.12 + // for the limit. The solution, comparing against occupied() would be too slow 1.13 + // at this time. 1.14 + Unimplemented(); 1.15 + return false; 1.16 + } 1.17 +} 1.18 + 1.19 bool OtherRegionsTable::is_empty() const { 1.20 return occ_sparse() == 0 && occ_coarse() == 0 && _first_all_fine_prts == NULL; 1.21 }