Skip to content

Commit dd76a28

Browse files
committedJan 14, 2022
8280000: Remove unused CardTable::find_covering_region_containing
Reviewed-by: tschatzl, sjohanss
1 parent 84976b4 commit dd76a28

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed
 

‎src/hotspot/share/gc/shared/cardTable.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,6 @@ int CardTable::find_covering_region_by_base(HeapWord* base) {
162162
return res;
163163
}
164164

165-
int CardTable::find_covering_region_containing(HeapWord* addr) {
166-
for (int i = 0; i < _cur_covered_regions; i++) {
167-
if (_covered[i].contains(addr)) {
168-
return i;
169-
}
170-
}
171-
assert(0, "address outside of heap?");
172-
return -1;
173-
}
174-
175165
HeapWord* CardTable::largest_prev_committed_end(int ind) const {
176166
HeapWord* max_end = NULL;
177167
for (int j = 0; j < ind; j++) {

‎src/hotspot/share/gc/shared/cardTable.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ class CardTable: public CHeapObj<mtGC> {
7878
// covered regions defined in the constructor are ever in use.
7979
int find_covering_region_by_base(HeapWord* base);
8080

81-
// Same as above, but finds the region containing the given address
82-
// instead of starting at a given base address.
83-
int find_covering_region_containing(HeapWord* addr);
84-
8581
// Returns the leftmost end of a committed region corresponding to a
8682
// covered region before covered region "ind", or else "NULL" if "ind" is
8783
// the first covered region.

0 commit comments

Comments
 (0)
Please sign in to comment.