Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8280000: Remove unused CardTable::find_covering_region_containing #7074

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/hotspot/share/gc/shared/cardTable.cpp
Original file line number Diff line number Diff line change
@@ -162,16 +162,6 @@ int CardTable::find_covering_region_by_base(HeapWord* base) {
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* max_end = NULL;
for (int j = 0; j < ind; j++) {
4 changes: 0 additions & 4 deletions src/hotspot/share/gc/shared/cardTable.hpp
Original file line number Diff line number Diff line change
@@ -78,10 +78,6 @@ class CardTable: public CHeapObj<mtGC> {
// covered regions defined in the constructor are ever in use.
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
// covered region before covered region "ind", or else "NULL" if "ind" is
// the first covered region.