38
38
39
39
// Checks an individual oop for missing precise marks. Mark
40
40
// may be either dirty or newgen.
41
- class CheckForUnmarkedOops : public BasicOopIterateClosure {
41
+ class PSCheckForUnmarkedOops : public BasicOopIterateClosure {
42
42
PSYoungGen* _young_gen;
43
43
PSCardTable* _card_table;
44
44
HeapWord* _unmarked_addr;
@@ -55,7 +55,7 @@ class CheckForUnmarkedOops : public BasicOopIterateClosure {
55
55
}
56
56
57
57
public:
58
- CheckForUnmarkedOops (PSYoungGen* young_gen, PSCardTable* card_table) :
58
+ PSCheckForUnmarkedOops (PSYoungGen* young_gen, PSCardTable* card_table) :
59
59
_young_gen (young_gen), _card_table(card_table), _unmarked_addr(nullptr ) { }
60
60
61
61
void do_oop (oop* p) override { do_oop_work (p); }
@@ -68,13 +68,13 @@ class CheckForUnmarkedOops : public BasicOopIterateClosure {
68
68
69
69
// Checks all objects for the existence of some type of mark,
70
70
// precise or imprecise, dirty or newgen.
71
- class CheckForUnmarkedObjects : public ObjectClosure {
71
+ class PSCheckForUnmarkedObjects : public ObjectClosure {
72
72
private:
73
73
PSYoungGen* _young_gen;
74
74
PSCardTable* _card_table;
75
75
76
76
public:
77
- CheckForUnmarkedObjects () {
77
+ PSCheckForUnmarkedObjects () {
78
78
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap ();
79
79
_young_gen = heap->young_gen ();
80
80
_card_table = heap->card_table ();
@@ -85,7 +85,7 @@ class CheckForUnmarkedObjects : public ObjectClosure {
85
85
// we test for missing precise marks first. If any are found, we don't
86
86
// fail unless the object head is also unmarked.
87
87
virtual void do_object (oop obj) {
88
- CheckForUnmarkedOops object_check (_young_gen, _card_table);
88
+ PSCheckForUnmarkedOops object_check (_young_gen, _card_table);
89
89
obj->oop_iterate (&object_check);
90
90
if (object_check.has_unmarked_oop ()) {
91
91
guarantee (_card_table->is_dirty_for_addr (obj), " Found unmarked young_gen object" );
@@ -377,7 +377,7 @@ void PSCardTable::scavenge_contents_parallel(ObjectStartArray* start_array,
377
377
378
378
// This should be called before a scavenge.
379
379
void PSCardTable::verify_all_young_refs_imprecise () {
380
- CheckForUnmarkedObjects check;
380
+ PSCheckForUnmarkedObjects check;
381
381
382
382
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap ();
383
383
PSOldGen* old_gen = heap->old_gen ();
0 commit comments