8280079: Serial: Remove empty Generation::prepare_for_verify

Reviewed-by: tschatzl, iwalulya
This commit is contained in:
Albert Mingkun Yang 2022-01-18 14:53:42 +00:00
parent 1725f77bcd
commit d175d33f44
6 changed files with 0 additions and 22 deletions

View File

@ -212,9 +212,6 @@ void TenuredGeneration::assert_correct_size_change_locking() {
assert_locked_or_safepoint(ExpandHeap_lock);
}
// Currently nothing to do.
void TenuredGeneration::prepare_for_verify() {}
void TenuredGeneration::object_iterate(ObjectClosure* blk) {
_the_space->object_iterate(blk);
}

View File

@ -97,8 +97,6 @@ class TenuredGeneration: public CardGeneration {
HeapWord* expand_and_allocate(size_t size, bool is_tlab);
virtual void prepare_for_verify();
virtual void gc_prologue(bool full);
virtual void gc_epilogue(bool full);

View File

@ -301,9 +301,6 @@ void CardGeneration::compute_new_size() {
}
}
// Currently nothing to do.
void CardGeneration::prepare_for_verify() {}
void CardGeneration::space_iterate(SpaceClosure* blk,
bool usedOnly) {
blk->do_space(space());

View File

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

View File

@ -1045,16 +1045,8 @@ void GenCollectedHeap::release_scratch() {
_old_gen->reset_scratch();
}
class GenPrepareForVerifyClosure: public GenCollectedHeap::GenClosure {
void do_generation(Generation* gen) {
gen->prepare_for_verify();
}
};
void GenCollectedHeap::prepare_for_verify() {
ensure_parsability(false); // no need to retire TLABs
GenPrepareForVerifyClosure blk;
generation_iterate(&blk, false);
}
void GenCollectedHeap::generation_iterate(GenClosure* cl,

View File

@ -364,10 +364,6 @@ class Generation: public CHeapObj<mtGC> {
virtual void post_compact() { ShouldNotReachHere(); }
#endif
// Some generations may require some cleanup actions before allowing
// a verification.
virtual void prepare_for_verify() {}
// Accessing "marks".
// This function gives a generation a chance to note a point between