8316513: Serial: Remove unused invalidate_remembered_set

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-09-19 15:20:51 +00:00
parent 607bd4ed84
commit a6d120d4df
3 changed files with 0 additions and 12 deletions

@ -143,12 +143,6 @@ void TenuredGeneration::shrink(size_t bytes) {
name(), old_mem_size/K, new_mem_size/K);
}
// Objects in this generation may have moved, invalidate this
// generation's cards.
void TenuredGeneration::invalidate_remembered_set() {
_rs->invalidate(used_region());
}
void TenuredGeneration::compute_new_size_inner() {
assert(_shrink_factor <= 100, "invalid shrink factor");
size_t current_shrink_factor = _shrink_factor;

@ -85,8 +85,6 @@ class TenuredGeneration: public Generation {
public:
virtual void compute_new_size();
virtual void invalidate_remembered_set();
// Grow generation with specified size (returns false if unable to grow)
bool grow_by(size_t bytes);
// Grow generation to reserved size.

@ -326,10 +326,6 @@ class Generation: public CHeapObj<mtGC> {
// each.
virtual void object_iterate(ObjectClosure* cl);
// 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() { }
// Block abstraction.
// Returns the address of the start of the "block" that contains the