8080109: Use single-threaded code in Threads::possibly_parallel_oops_do when running with only one worker thread

Reviewed-by: jmasa, kbarrett
This commit is contained in:
Stefan Karlsson 2015-05-21 09:10:47 +02:00
parent c8fa7eb4dd
commit e13e75547c
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ void G1RootProcessor::process_java_roots(OopClosure* strong_roots,
{
G1GCParPhaseTimesTracker x(phase_times, G1GCPhaseTimes::ThreadRoots, worker_i);
bool is_par = _g1h->n_par_threads() > 0;
bool is_par = _g1h->n_par_threads() > 1;
Threads::possibly_parallel_oops_do(is_par, strong_roots, thread_stack_clds, strong_code);
}
}