8324970: Serial: Refactor signature of maintain_old_to_young_invariant
Reviewed-by: tschatzl
This commit is contained in:
parent
b5c267fc8a
commit
ec6c35c4ac
src/hotspot/share/gc/serial
@ -27,6 +27,7 @@
|
||||
#include "gc/serial/cardTableRS.hpp"
|
||||
#include "gc/serial/generation.hpp"
|
||||
#include "gc/serial/serialHeap.hpp"
|
||||
#include "gc/serial/tenuredGeneration.hpp"
|
||||
#include "gc/shared/space.inline.hpp"
|
||||
#include "memory/iterator.inline.hpp"
|
||||
#include "utilities/align.hpp"
|
||||
@ -54,9 +55,8 @@ void CardTableRS::verify_used_region_at_save_marks(Space* sp) const {
|
||||
}
|
||||
#endif
|
||||
|
||||
void CardTableRS::maintain_old_to_young_invariant(Generation* old_gen, bool is_young_gen_empty) {
|
||||
assert(SerialHeap::heap()->is_old_gen(old_gen), "precondition");
|
||||
|
||||
void CardTableRS::maintain_old_to_young_invariant(TenuredGeneration* old_gen,
|
||||
bool is_young_gen_empty) {
|
||||
if (is_young_gen_empty) {
|
||||
clear_MemRegion(old_gen->prev_used_region());
|
||||
} else {
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "memory/memRegion.hpp"
|
||||
#include "oops/oop.hpp"
|
||||
|
||||
class Generation;
|
||||
class Space;
|
||||
class TenuredGeneration;
|
||||
class TenuredSpace;
|
||||
|
||||
// This RemSet uses a card table both as shared data structure
|
||||
@ -80,7 +80,7 @@ public:
|
||||
// the old generation card table completely if the young generation had been
|
||||
// completely evacuated, otherwise dirties the whole old generation to
|
||||
// conservatively not loose any old-to-young pointer.
|
||||
void maintain_old_to_young_invariant(Generation* old_gen, bool is_young_gen_empty);
|
||||
void maintain_old_to_young_invariant(TenuredGeneration* old_gen, bool is_young_gen_empty);
|
||||
|
||||
// Iterate over the portion of the card-table which covers the given
|
||||
// region mr in the given space and apply cl to any dirty sub-regions
|
||||
|
Loading…
x
Reference in New Issue
Block a user