8279522: Serial: Remove unused Generation::clear_remembered_set

Reviewed-by: iwalulya, mli
This commit is contained in:
Albert Mingkun Yang 2022-01-10 08:56:34 +00:00
parent 4aefd8b8b6
commit 5fa13bb4a3
3 changed files with 0 additions and 12 deletions

View File

@ -174,11 +174,6 @@ void CardGeneration::shrink(size_t bytes) {
name(), old_mem_size/K, new_mem_size/K);
}
// No young generation references, clear this generation's cards.
void CardGeneration::clear_remembered_set() {
_rs->clear(reserved());
}
// Objects in this generation may have moved, invalidate this
// generation's cards.
void CardGeneration::invalidate_remembered_set() {

View File

@ -71,8 +71,6 @@ class CardGeneration: public Generation {
virtual void compute_new_size();
virtual void clear_remembered_set();
virtual void invalidate_remembered_set();
virtual void prepare_for_verify();

View File

@ -422,11 +422,6 @@ class Generation: public CHeapObj<mtGC> {
// each.
virtual void object_iterate(ObjectClosure* cl);
// Inform a generation that it longer contains references to objects
// in any younger generation. [e.g. Because younger gens are empty,
// clear the card table.]
virtual void clear_remembered_set() { }
// Inform a generation that some of its objects have moved. [e.g. The
// generation's spaces were compacted, invalidating the card table.]
virtual void invalidate_remembered_set() { }