692 // Since we may have deleted a from_card_cache entry from the RS, clear |
692 // Since we may have deleted a from_card_cache entry from the RS, clear |
693 // the FCC. |
693 // the FCC. |
694 clear_fcc(); |
694 clear_fcc(); |
695 } |
695 } |
696 |
696 |
|
697 bool OtherRegionsTable::occupancy_less_or_equal_than(size_t limit) const { |
|
698 if (limit <= (size_t)G1RSetSparseRegionEntries) { |
|
699 return occ_coarse() == 0 && _first_all_fine_prts == NULL && occ_sparse() <= limit; |
|
700 } else { |
|
701 // Current uses of this method may only use values less than G1RSetSparseRegionEntries |
|
702 // for the limit. The solution, comparing against occupied() would be too slow |
|
703 // at this time. |
|
704 Unimplemented(); |
|
705 return false; |
|
706 } |
|
707 } |
|
708 |
697 bool OtherRegionsTable::is_empty() const { |
709 bool OtherRegionsTable::is_empty() const { |
698 return occ_sparse() == 0 && occ_coarse() == 0 && _first_all_fine_prts == NULL; |
710 return occ_sparse() == 0 && occ_coarse() == 0 && _first_all_fine_prts == NULL; |
699 } |
711 } |
700 |
712 |
701 size_t OtherRegionsTable::occupied() const { |
713 size_t OtherRegionsTable::occupied() const { |