Skip to content

Commit 7a046e0

Browse files
committed
8277371: Remove unnecessary DefNewGeneration::ref_processor_init()
Reviewed-by: stefank, tschatzl, mli
1 parent 3a76d39 commit 7a046e0

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/hotspot/share/gc/serial/defNewGeneration.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,6 @@ void DefNewGeneration::record_spaces_top() {
878878
from()->set_top_for_allocations();
879879
}
880880

881-
void DefNewGeneration::ref_processor_init() {
882-
Generation::ref_processor_init();
883-
}
884-
885-
886881
void DefNewGeneration::update_counters() {
887882
if (UsePerfData) {
888883
_eden_counters->update_all();

src/hotspot/share/gc/serial/defNewGeneration.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ class DefNewGeneration: public Generation {
202202
size_t max_byte_size,
203203
const char* policy="Serial young collection pauses");
204204

205-
virtual void ref_processor_init();
206-
207205
virtual Generation::Name kind() { return Generation::DefNew; }
208206

209207
// Accessing spaces

src/hotspot/share/gc/shared/generation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Generation: public CHeapObj<mtGC> {
118118
};
119119

120120
// allocate and initialize ("weak") refs processing support
121-
virtual void ref_processor_init();
121+
void ref_processor_init();
122122
void set_ref_processor(ReferenceProcessor* rp) {
123123
assert(_ref_processor == NULL, "clobbering existing _ref_processor");
124124
_ref_processor = rp;

0 commit comments

Comments
 (0)