mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
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:
parent
c8fa7eb4dd
commit
e13e75547c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue