8326196: Serial: Remove SerialHeap::generation_iterate
Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
beed4145ec
commit
d60331a21c
src/hotspot/share/gc/serial
@ -950,17 +950,6 @@ void SerialHeap::prepare_for_verify() {
|
||||
ensure_parsability(false); // no need to retire TLABs
|
||||
}
|
||||
|
||||
void SerialHeap::generation_iterate(GenClosure* cl,
|
||||
bool old_to_young) {
|
||||
if (old_to_young) {
|
||||
cl->do_generation(_old_gen);
|
||||
cl->do_generation(_young_gen);
|
||||
} else {
|
||||
cl->do_generation(_young_gen);
|
||||
cl->do_generation(_old_gen);
|
||||
}
|
||||
}
|
||||
|
||||
bool SerialHeap::is_maximal_no_gc() const {
|
||||
// We don't expand young-gen except at a GC.
|
||||
return _old_gen->is_maximal_no_gc();
|
||||
@ -1058,18 +1047,10 @@ void SerialHeap::gc_epilogue(bool full) {
|
||||
};
|
||||
|
||||
#ifndef PRODUCT
|
||||
class GenGCSaveTopsBeforeGCClosure: public SerialHeap::GenClosure {
|
||||
private:
|
||||
public:
|
||||
void do_generation(Generation* gen) {
|
||||
gen->record_spaces_top();
|
||||
}
|
||||
};
|
||||
|
||||
void SerialHeap::record_gen_tops_before_GC() {
|
||||
if (ZapUnusedHeapArea) {
|
||||
GenGCSaveTopsBeforeGCClosure blk;
|
||||
generation_iterate(&blk, false); // not old-to-young.
|
||||
_young_gen->record_spaces_top();
|
||||
_old_gen->record_spaces_top();
|
||||
}
|
||||
}
|
||||
#endif // not PRODUCT
|
||||
|
@ -249,10 +249,6 @@ public:
|
||||
virtual void do_generation(Generation* gen) = 0;
|
||||
};
|
||||
|
||||
// Apply "cl.do_generation" to all generations in the heap
|
||||
// If "old_to_young" determines the order.
|
||||
void generation_iterate(GenClosure* cl, bool old_to_young);
|
||||
|
||||
// Return "true" if all generations have reached the
|
||||
// maximal committed limit that they can reach, without a garbage
|
||||
// collection.
|
||||
|
Loading…
x
Reference in New Issue
Block a user