8293209: Parallel: Remove unused variables in PSParallelCompact::invoke

Reviewed-by: kbarrett
This commit is contained in:
Albert Mingkun Yang 2022-09-02 11:00:49 +00:00
parent 46523b817c
commit 26cac088b4

View File

@ -1683,10 +1683,8 @@ void PSParallelCompact::invoke(bool maximum_heap_compaction) {
"should be in vm thread");
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
GCCause::Cause gc_cause = heap->gc_cause();
assert(!heap->is_gc_active(), "not reentrant");
PSAdaptiveSizePolicy* policy = heap->size_policy();
IsGCActiveMark mark;
if (ScavengeBeforeFullGC) {