8204617: ParallelGC parallel reference processing does not set MT degree in reference processor

Reviewed-by: sangheki, kbarrett
This commit is contained in:
Thomas Schatzl 2018-06-11 12:09:57 +02:00
parent 9be1418ddb
commit 9455a89d47

View file

@ -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,