From b689c9e18c307cdc4fa4681aa65c2f4258d624b0 Mon Sep 17 00:00:00 2001 From: Guoxiong Li Date: Fri, 3 May 2024 21:43:13 +0800 Subject: [PATCH] Remove parameter --- src/hotspot/share/oops/stackChunkOop.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hotspot/share/oops/stackChunkOop.cpp b/src/hotspot/share/oops/stackChunkOop.cpp index 871cad5a473a0..6ed20f2f07d5b 100644 --- a/src/hotspot/share/oops/stackChunkOop.cpp +++ b/src/hotspot/share/oops/stackChunkOop.cpp @@ -206,7 +206,7 @@ class TransformStackChunkClosure { stackChunkOop _chunk; public: - TransformStackChunkClosure(stackChunkOop chunk, DerivedPointersSupport::RelativizeClosure* cl) + TransformStackChunkClosure(stackChunkOop chunk) : _chunk(chunk) { } @@ -293,8 +293,7 @@ void stackChunkOopDesc::relativize_derived_pointers_concurrently() { return; } - DerivedPointersSupport::RelativizeClosure derived_cl; - TransformStackChunkClosure frame_cl(this, &derived_cl); + TransformStackChunkClosure frame_cl(this); iterate_stack(&frame_cl); release_relativization(); @@ -308,8 +307,7 @@ void stackChunkOopDesc::transform() { set_has_bitmap(true); bitmap().clear(); - DerivedPointersSupport::RelativizeClosure derived_cl; - TransformStackChunkClosure closure(this, &derived_cl); + TransformStackChunkClosure closure(this); iterate_stack(&closure); }