From 26cac088b4d5a7bf4a0f079038f6619768720b3b Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Fri, 2 Sep 2022 11:00:49 +0000 Subject: [PATCH] 8293209: Parallel: Remove unused variables in PSParallelCompact::invoke Reviewed-by: kbarrett --- src/hotspot/share/gc/parallel/psParallelCompact.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hotspot/share/gc/parallel/psParallelCompact.cpp b/src/hotspot/share/gc/parallel/psParallelCompact.cpp index 25bc767e572..03249c85e91 100644 --- a/src/hotspot/share/gc/parallel/psParallelCompact.cpp +++ b/src/hotspot/share/gc/parallel/psParallelCompact.cpp @@ -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) {