8268443: ParallelGC Full GC should use parallel WeakProcessor

Co-authored-by: Kim Barrett <kbarrett@openjdk.org>
Reviewed-by: kbarrett, sjohanss, tschatzl
This commit is contained in:
Albert Mingkun Yang 2021-06-10 14:32:46 +00:00
parent 0a6c7d8a4b
commit a95e64ccc1

View File

@ -2114,7 +2114,10 @@ void PSParallelCompact::marking_phase(ParCompactionManager* cm,
{
GCTraceTime(Debug, gc, phases) tm("Weak Processing", &_gc_timer);
WeakProcessor::weak_oops_do(is_alive_closure(), &do_nothing_cl);
WeakProcessor::weak_oops_do(&ParallelScavengeHeap::heap()->workers(),
is_alive_closure(),
&do_nothing_cl,
1);
}
{