8279703: G1: Remove unused force_not_compacted local in G1CalculatePointersClosure::do_heap_region

Reviewed-by: ayang, mli
This commit is contained in:
Thomas Schatzl 2022-01-11 08:39:54 +00:00
parent bf7bcaacaa
commit 3121898c33

View File

@ -52,7 +52,6 @@ void G1FullGCPrepareTask::G1CalculatePointersClosure::free_pinned_region(HeapReg
}
bool G1FullGCPrepareTask::G1CalculatePointersClosure::do_heap_region(HeapRegion* hr) {
bool force_not_compacted = false;
if (should_compact(hr)) {
assert(!hr->is_humongous(), "moving humongous objects not supported.");
prepare_for_compaction(hr);