src/share/vm/gc_implementation/g1/concurrentMark.cpp
Print this page
rev 3952 : 8005875: G1: Kitchensink fails with ParallelGCThreads=0
Summary: Check that the concurrent marking worker gang exists in ConcurrentMark::print_worker_threads_on().
Reviewed-by:
@@ -3240,11 +3240,13 @@
cmThread()->vtime_accum(),
cmThread()->vtime_mark_accum());
}
void ConcurrentMark::print_worker_threads_on(outputStream* st) const {
+ if (parallel_marking_threads() > 0) {
_parallel_workers->print_worker_threads_on(st);
+ }
}
// We take a break if someone is trying to stop the world.
bool ConcurrentMark::do_yield_check(uint worker_id) {
if (should_yield()) {