27 #include "gc/shared/referenceProcessor.hpp" |
27 #include "gc/shared/referenceProcessor.hpp" |
28 #include "memory/iterator.inline.hpp" |
28 #include "memory/iterator.inline.hpp" |
29 |
29 |
30 G1FullGCMarker::G1FullGCMarker(uint worker_id, PreservedMarks* preserved_stack, G1CMBitMap* bitmap) : |
30 G1FullGCMarker::G1FullGCMarker(uint worker_id, PreservedMarks* preserved_stack, G1CMBitMap* bitmap) : |
31 _worker_id(worker_id), |
31 _worker_id(worker_id), |
|
32 _bitmap(bitmap), |
|
33 _oop_stack(), |
|
34 _objarray_stack(), |
|
35 _preserved_stack(preserved_stack), |
32 _mark_closure(worker_id, this, G1CollectedHeap::heap()->ref_processor_stw()), |
36 _mark_closure(worker_id, this, G1CollectedHeap::heap()->ref_processor_stw()), |
33 _verify_closure(VerifyOption_G1UseFullMarking), |
37 _verify_closure(VerifyOption_G1UseFullMarking), |
34 _cld_closure(mark_closure()), |
|
35 _stack_closure(this), |
38 _stack_closure(this), |
36 _preserved_stack(preserved_stack), |
39 _cld_closure(mark_closure()) { |
37 _bitmap(bitmap) { |
|
38 _oop_stack.initialize(); |
40 _oop_stack.initialize(); |
39 _objarray_stack.initialize(); |
41 _objarray_stack.initialize(); |
40 } |
42 } |
41 |
43 |
42 G1FullGCMarker::~G1FullGCMarker() { |
44 G1FullGCMarker::~G1FullGCMarker() { |