8280000: Remove unused CardTable::find_covering_region_containing

Reviewed-by: tschatzl, sjohanss
This commit is contained in:
Albert Mingkun Yang 2022-01-14 12:35:51 +00:00
parent 84976b4531
commit dd76a28d44
2 changed files with 0 additions and 14 deletions

View file

@ -162,16 +162,6 @@ int CardTable::find_covering_region_by_base(HeapWord* base) {
return res; return res;
} }
int CardTable::find_covering_region_containing(HeapWord* addr) {
for (int i = 0; i < _cur_covered_regions; i++) {
if (_covered[i].contains(addr)) {
return i;
}
}
assert(0, "address outside of heap?");
return -1;
}
HeapWord* CardTable::largest_prev_committed_end(int ind) const { HeapWord* CardTable::largest_prev_committed_end(int ind) const {
HeapWord* max_end = NULL; HeapWord* max_end = NULL;
for (int j = 0; j < ind; j++) { for (int j = 0; j < ind; j++) {

View file

@ -78,10 +78,6 @@ protected:
// covered regions defined in the constructor are ever in use. // covered regions defined in the constructor are ever in use.
int find_covering_region_by_base(HeapWord* base); int find_covering_region_by_base(HeapWord* base);
// Same as above, but finds the region containing the given address
// instead of starting at a given base address.
int find_covering_region_containing(HeapWord* addr);
// Returns the leftmost end of a committed region corresponding to a // Returns the leftmost end of a committed region corresponding to a
// covered region before covered region "ind", or else "NULL" if "ind" is // covered region before covered region "ind", or else "NULL" if "ind" is
// the first covered region. // the first covered region.