From f32f5740046e11868a3eec69495056c75e1237a9 Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Mon, 26 Feb 2024 09:36:48 +0000 Subject: [PATCH] 8326575: Remove unused ContiguousSpace::set_top_for_allocations Reviewed-by: tschatzl, sjohanss --- src/hotspot/share/gc/shared/space.cpp | 3 --- src/hotspot/share/gc/shared/space.hpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/hotspot/share/gc/shared/space.cpp b/src/hotspot/share/gc/shared/space.cpp index ca027d60431..7d9925fc270 100644 --- a/src/hotspot/share/gc/shared/space.cpp +++ b/src/hotspot/share/gc/shared/space.cpp @@ -77,9 +77,6 @@ void ContiguousSpace::clear(bool mangle_space) { #ifndef PRODUCT -void ContiguousSpace::set_top_for_allocations(HeapWord* v) { - mangler()->set_top_for_allocations(v); -} void ContiguousSpace::set_top_for_allocations() { mangler()->set_top_for_allocations(top()); } diff --git a/src/hotspot/share/gc/shared/space.hpp b/src/hotspot/share/gc/shared/space.hpp index 3a0884229dc..c27f703782b 100644 --- a/src/hotspot/share/gc/shared/space.hpp +++ b/src/hotspot/share/gc/shared/space.hpp @@ -166,8 +166,6 @@ public: bool saved_mark_at_top() const { return saved_mark_word() == top(); } - // Used to save the address in a space for later use during mangling. - void set_top_for_allocations(HeapWord* v) PRODUCT_RETURN; // Used to save the space's current top for later use during mangling. void set_top_for_allocations() PRODUCT_RETURN;