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 |