Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1RemSet.cpp @ 2361:1216415d8e35
7014923: G1: code cleanup
Summary: Some G1 code cleanup.
Reviewed-by: johnc, jcoomes, jwilhelm
author | tonyp |
---|---|
date | Fri, 04 Mar 2011 17:13:19 -0500 |
parents | c33825b68624 |
children | 04d1138b4cce |
comparison
equal
deleted
inserted
replaced
2312:11303bede852 | 2361:1216415d8e35 |
---|---|
82 oop obj = oopDesc::load_decode_heap_oop(p); | 82 oop obj = oopDesc::load_decode_heap_oop(p); |
83 if (_g1->obj_in_cs(obj)) _blk->do_oop(p); | 83 if (_g1->obj_in_cs(obj)) _blk->do_oop(p); |
84 } | 84 } |
85 bool apply_to_weak_ref_discovered_field() { return true; } | 85 bool apply_to_weak_ref_discovered_field() { return true; } |
86 bool idempotent() { return true; } | 86 bool idempotent() { return true; } |
87 }; | |
88 | |
89 class IntoCSRegionClosure: public HeapRegionClosure { | |
90 IntoCSOopClosure _blk; | |
91 G1CollectedHeap* _g1; | |
92 public: | |
93 IntoCSRegionClosure(G1CollectedHeap* g1, OopsInHeapRegionClosure* blk) : | |
94 _g1(g1), _blk(g1, blk) {} | |
95 bool doHeapRegion(HeapRegion* r) { | |
96 if (!r->in_collection_set()) { | |
97 _blk.set_region(r); | |
98 if (r->isHumongous()) { | |
99 if (r->startsHumongous()) { | |
100 oop obj = oop(r->bottom()); | |
101 obj->oop_iterate(&_blk); | |
102 } | |
103 } else { | |
104 r->oop_before_save_marks_iterate(&_blk); | |
105 } | |
106 } | |
107 return false; | |
108 } | |
109 }; | 87 }; |
110 | 88 |
111 class VerifyRSCleanCardOopClosure: public OopClosure { | 89 class VerifyRSCleanCardOopClosure: public OopClosure { |
112 G1CollectedHeap* _g1; | 90 G1CollectedHeap* _g1; |
113 public: | 91 public: |