File tree 4 files changed +6
-21
lines changed
src/hotspot/share/gc/shared
4 files changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ void ClearNoncleanCardWrapper::do_MemRegion(MemRegion mr) {
111
111
}
112
112
}
113
113
114
- void CardTableRS::younger_refs_in_space_iterate (Space * sp,
114
+ void CardTableRS::younger_refs_in_space_iterate (ContiguousSpace * sp,
115
115
HeapWord* gen_boundary,
116
116
OopIterateClosure* cl) {
117
117
verify_used_region_at_save_marks (sp);
@@ -440,7 +440,7 @@ void CardTableRS::initialize() {
440
440
CardTable::initialize ();
441
441
}
442
442
443
- void CardTableRS::non_clean_card_iterate (Space * sp,
443
+ void CardTableRS::non_clean_card_iterate (ContiguousSpace * sp,
444
444
HeapWord* gen_boundary,
445
445
MemRegion mr,
446
446
OopIterateClosure* cl,
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 ContiguousSpace ;
32
33
class DirtyCardToOopClosure ;
33
34
class Generation ;
34
35
class Space ;
35
-
36
36
// This RemSet uses a card table both as shared data structure
37
37
// for a mod ref barrier set and for the rem set information.
38
38
@@ -47,7 +47,7 @@ class CardTableRS : public CardTable {
47
47
public:
48
48
CardTableRS (MemRegion whole_heap);
49
49
50
- void younger_refs_in_space_iterate (Space * sp, HeapWord* gen_boundary, OopIterateClosure* cl);
50
+ void younger_refs_in_space_iterate (ContiguousSpace * sp, HeapWord* gen_boundary, OopIterateClosure* cl);
51
51
52
52
virtual void verify_used_region_at_save_marks (Space* sp) const NOT_DEBUG_RETURN;
53
53
@@ -70,7 +70,7 @@ class CardTableRS : public CardTable {
70
70
// Iterate over the portion of the card-table which covers the given
71
71
// region mr in the given space and apply cl to any dirty sub-regions
72
72
// of mr. Clears the dirty cards as they are processed.
73
- void non_clean_card_iterate (Space * sp,
73
+ void non_clean_card_iterate (ContiguousSpace * sp,
74
74
HeapWord* gen_boundary,
75
75
MemRegion mr,
76
76
OopIterateClosure* cl,
Original file line number Diff line number Diff line change @@ -161,12 +161,6 @@ void DirtyCardToOopClosure::do_MemRegion(MemRegion mr) {
161
161
_min_done = bottom;
162
162
}
163
163
164
- DirtyCardToOopClosure* Space::new_dcto_cl (OopIterateClosure* cl,
165
- CardTable::PrecisionStyle precision,
166
- HeapWord* boundary) {
167
- return new DirtyCardToOopClosure (this , cl, precision, boundary);
168
- }
169
-
170
164
HeapWord* ContiguousSpaceDCTOC::get_actual_top (HeapWord* top,
171
165
HeapWord* top_obj) {
172
166
if (top_obj != NULL && top_obj < (_sp->toContiguousSpace ())->top ()) {
Original file line number Diff line number Diff line change @@ -173,14 +173,6 @@ class Space: public CHeapObj<mtGC> {
173
173
// included in the iteration.
174
174
virtual void object_iterate (ObjectClosure* blk) = 0;
175
175
176
- // Create and return a new dirty card to oop closure. Can be
177
- // overridden to return the appropriate type of closure
178
- // depending on the type of space in which the closure will
179
- // operate. ResourceArea allocated.
180
- virtual DirtyCardToOopClosure* new_dcto_cl (OopIterateClosure* cl,
181
- CardTable::PrecisionStyle precision,
182
- HeapWord* boundary);
183
-
184
176
// If "p" is in the space, returns the address of the start of the
185
177
// "block" that contains "p". We say "block" instead of "object" since
186
178
// some heaps may not pack objects densely; a chunk may either be an
@@ -474,10 +466,9 @@ class ContiguousSpace: public CompactibleSpace {
474
466
set_top (compaction_top ());
475
467
}
476
468
477
- // Override.
478
469
DirtyCardToOopClosure* new_dcto_cl (OopIterateClosure* cl,
479
470
CardTable::PrecisionStyle precision,
480
- HeapWord* boundary) override ;
471
+ HeapWord* boundary);
481
472
482
473
// Apply "blk->do_oop" to the addresses of all reference fields in objects
483
474
// starting with the _saved_mark_word, which was noted during a generation's
You can’t perform that action at this time.
0 commit comments