comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 12082:9720d338b1d5

8023145: G1: G1CollectedHeap::mark_strong_code_roots() needs to handle ParallelGCThreads=0 Reviewed-by: stefank, mgerdin
author brutisso
date Fri, 16 Aug 2013 11:26:09 +0200
parents 5888334c9c24
children 4c84d351cca9 f7d3b4387a16
comparison
equal deleted inserted replaced
12081:8088d93a63e6 12082: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