src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

changeset 5550
9720d338b1d5
parent 5548
5888334c9c24
child 5578
4c84d351cca9
child 5581
f7d3b4387a16
equal deleted inserted replaced
5549:8088d93a63e6 5550:9720d338b1d5
6805 } 6805 }
6806 }; 6806 };
6807 6807
6808 void G1CollectedHeap::mark_strong_code_roots(uint worker_id) { 6808 void G1CollectedHeap::mark_strong_code_roots(uint worker_id) {
6809 MarkStrongCodeRootsHRClosure cl(this, worker_id); 6809 MarkStrongCodeRootsHRClosure cl(this, worker_id);
6810 heap_region_par_iterate_chunked(&cl, 6810 if (G1CollectedHeap::use_parallel_gc_threads()) {
6811 worker_id, 6811 heap_region_par_iterate_chunked(&cl,
6812 workers()->active_workers(), 6812 worker_id,
6813 HeapRegion::ParMarkRootClaimValue); 6813 workers()->active_workers(),
6814 HeapRegion::ParMarkRootClaimValue);
6815 } else {
6816 heap_region_iterate(&cl);
6817 }
6814 } 6818 }
6815 6819
6816 class RebuildStrongCodeRootClosure: public CodeBlobClosure { 6820 class RebuildStrongCodeRootClosure: public CodeBlobClosure {
6817 G1CollectedHeap* _g1h; 6821 G1CollectedHeap* _g1h;
6818 6822

mercurial