From f95e7263a54ba80ec346c8d2e384a4434905fa73 Mon Sep 17 00:00:00 2001 From: Albert Yang Date: Wed, 17 Nov 2021 22:18:48 +0100 Subject: [PATCH] ref_processor_init --- src/hotspot/share/gc/serial/defNewGeneration.cpp | 5 ----- src/hotspot/share/gc/serial/defNewGeneration.hpp | 2 -- src/hotspot/share/gc/shared/generation.hpp | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/hotspot/share/gc/serial/defNewGeneration.cpp b/src/hotspot/share/gc/serial/defNewGeneration.cpp index cd5e679cd074b..4b64494d24202 100644 --- a/src/hotspot/share/gc/serial/defNewGeneration.cpp +++ b/src/hotspot/share/gc/serial/defNewGeneration.cpp @@ -878,11 +878,6 @@ void DefNewGeneration::record_spaces_top() { from()->set_top_for_allocations(); } -void DefNewGeneration::ref_processor_init() { - Generation::ref_processor_init(); -} - - void DefNewGeneration::update_counters() { if (UsePerfData) { _eden_counters->update_all(); diff --git a/src/hotspot/share/gc/serial/defNewGeneration.hpp b/src/hotspot/share/gc/serial/defNewGeneration.hpp index 5ea7785256654..f060a5ea8ac99 100644 --- a/src/hotspot/share/gc/serial/defNewGeneration.hpp +++ b/src/hotspot/share/gc/serial/defNewGeneration.hpp @@ -202,8 +202,6 @@ class DefNewGeneration: public Generation { size_t max_byte_size, const char* policy="Serial young collection pauses"); - virtual void ref_processor_init(); - virtual Generation::Name kind() { return Generation::DefNew; } // Accessing spaces diff --git a/src/hotspot/share/gc/shared/generation.hpp b/src/hotspot/share/gc/shared/generation.hpp index 452212ffd7224..216b38d38b7e5 100644 --- a/src/hotspot/share/gc/shared/generation.hpp +++ b/src/hotspot/share/gc/shared/generation.hpp @@ -118,7 +118,7 @@ class Generation: public CHeapObj { }; // allocate and initialize ("weak") refs processing support - virtual void ref_processor_init(); + void ref_processor_init(); void set_ref_processor(ReferenceProcessor* rp) { assert(_ref_processor == NULL, "clobbering existing _ref_processor"); _ref_processor = rp;