File tree 2 files changed +5
-5
lines changed
src/hotspot/share/gc/serial
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 27
27
#include " gc/serial/cardTableRS.hpp"
28
28
#include " gc/serial/generation.hpp"
29
29
#include " gc/serial/serialHeap.hpp"
30
+ #include " gc/serial/tenuredGeneration.hpp"
30
31
#include " gc/shared/space.inline.hpp"
31
32
#include " memory/iterator.inline.hpp"
32
33
#include " utilities/align.hpp"
@@ -54,9 +55,8 @@ void CardTableRS::verify_used_region_at_save_marks(Space* sp) const {
54
55
}
55
56
#endif
56
57
57
- void CardTableRS::maintain_old_to_young_invariant (Generation* old_gen, bool is_young_gen_empty) {
58
- assert (SerialHeap::heap ()->is_old_gen (old_gen), " precondition" );
59
-
58
+ void CardTableRS::maintain_old_to_young_invariant (TenuredGeneration* old_gen,
59
+ bool is_young_gen_empty) {
60
60
if (is_young_gen_empty) {
61
61
clear_MemRegion (old_gen->prev_used_region ());
62
62
} else {
Original file line number Diff line number Diff line change 29
29
#include " memory/memRegion.hpp"
30
30
#include " oops/oop.hpp"
31
31
32
- class Generation ;
33
32
class Space ;
33
+ class TenuredGeneration ;
34
34
class TenuredSpace ;
35
35
36
36
// This RemSet uses a card table both as shared data structure
@@ -80,7 +80,7 @@ class CardTableRS : public CardTable {
80
80
// the old generation card table completely if the young generation had been
81
81
// completely evacuated, otherwise dirties the whole old generation to
82
82
// conservatively not loose any old-to-young pointer.
83
- void maintain_old_to_young_invariant (Generation * old_gen, bool is_young_gen_empty);
83
+ void maintain_old_to_young_invariant (TenuredGeneration * old_gen, bool is_young_gen_empty);
84
84
85
85
// Iterate over the portion of the card-table which covers the given
86
86
// region mr in the given space and apply cl to any dirty sub-regions
You can’t perform that action at this time.
0 commit comments