From 9a68ec8bb2116cd166732cc1208cb19b6cd6a64d Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Tue, 20 Jun 2023 09:46:56 +0000 Subject: [PATCH] 8219357: G1: G1GCPhaseTimes::debug_phase uses unnecessary ResourceMark Reviewed-by: shade, ayang --- src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp b/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp index 5fc8b54df0d..da61e74e84f 100644 --- a/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp +++ b/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp @@ -356,7 +356,6 @@ void G1GCPhaseTimes::log_phase(WorkerDataArray* phase, uint indent_level void G1GCPhaseTimes::debug_phase(WorkerDataArray* phase, uint extra_indent) const { LogTarget(Debug, gc, phases) lt; if (lt.is_enabled()) { - ResourceMark rm; LogStream ls(lt); log_phase(phase, 2 + extra_indent, &ls, true); }