Skip to content

Commit a6d120d

Browse files
committed
8316513: Serial: Remove unused invalidate_remembered_set
Reviewed-by: tschatzl
1 parent 607bd4e commit a6d120d

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/hotspot/share/gc/serial/tenuredGeneration.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ void TenuredGeneration::shrink(size_t bytes) {
143143
name(), old_mem_size/K, new_mem_size/K);
144144
}
145145

146-
// Objects in this generation may have moved, invalidate this
147-
// generation's cards.
148-
void TenuredGeneration::invalidate_remembered_set() {
149-
_rs->invalidate(used_region());
150-
}
151-
152146
void TenuredGeneration::compute_new_size_inner() {
153147
assert(_shrink_factor <= 100, "invalid shrink factor");
154148
size_t current_shrink_factor = _shrink_factor;

src/hotspot/share/gc/serial/tenuredGeneration.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ class TenuredGeneration: public Generation {
8585
public:
8686
virtual void compute_new_size();
8787

88-
virtual void invalidate_remembered_set();
89-
9088
// Grow generation with specified size (returns false if unable to grow)
9189
bool grow_by(size_t bytes);
9290
// Grow generation to reserved size.

src/hotspot/share/gc/shared/generation.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,6 @@ class Generation: public CHeapObj<mtGC> {
326326
// each.
327327
virtual void object_iterate(ObjectClosure* cl);
328328

329-
// Inform a generation that some of its objects have moved. [e.g. The
330-
// generation's spaces were compacted, invalidating the card table.]
331-
virtual void invalidate_remembered_set() { }
332-
333329
// Block abstraction.
334330

335331
// Returns the address of the start of the "block" that contains the

0 commit comments

Comments
 (0)