Skip to content
Permalink
Browse files
8277371: Remove unnecessary DefNewGeneration::ref_processor_init()
Reviewed-by: stefank, tschatzl, mli
  • Loading branch information
albertnetymk committed Nov 19, 2021
1 parent 3a76d39 commit 7a046e0f765e0ad04fd52c9a882c5d90b085bc00
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
@@ -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();
@@ -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
@@ -118,7 +118,7 @@ class Generation: public CHeapObj<mtGC> {
};

// 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;

1 comment on commit 7a046e0

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 7a046e0 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.