mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8204617: ParallelGC parallel reference processing does not set MT degree in reference processor
Reviewed-by: sangheki, kbarrett
This commit is contained in:
parent
9be1418ddb
commit
9455a89d47
1 changed files with 3 additions and 0 deletions
|
@ -2112,7 +2112,10 @@ void PSParallelCompact::marking_phase(ParCompactionManager* cm,
|
|||
|
||||
ReferenceProcessorStats stats;
|
||||
ReferenceProcessorPhaseTimes pt(&_gc_timer, ref_processor()->max_num_queues());
|
||||
|
||||
if (ref_processor()->processing_is_mt()) {
|
||||
ref_processor()->set_active_mt_degree(active_gc_threads);
|
||||
|
||||
RefProcTaskExecutor task_executor;
|
||||
stats = ref_processor()->process_discovered_references(
|
||||
is_alive_closure(), &mark_and_push_closure, &follow_stack_closure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue