8202592: Remove unused EvacuateFollowersClosure
authorstefank
Mon, 07 May 2018 14:42:04 +0200
changeset 50032 6be313c6c250
parent 50031 aa04bf7b99bd
child 50033 000c697c81db
8202592: Remove unused EvacuateFollowersClosure Reviewed-by: kbarrett, tschatzl
src/hotspot/share/gc/serial/defNewGeneration.cpp
src/hotspot/share/gc/serial/defNewGeneration.hpp
--- a/src/hotspot/share/gc/serial/defNewGeneration.cpp	Mon May 07 14:42:00 2018 +0200
+++ b/src/hotspot/share/gc/serial/defNewGeneration.cpp	Mon May 07 14:42:04 2018 +0200
@@ -92,19 +92,6 @@
 void DefNewGeneration::FastKeepAliveClosure::do_oop(oop* p)       { DefNewGeneration::FastKeepAliveClosure::do_oop_work(p); }
 void DefNewGeneration::FastKeepAliveClosure::do_oop(narrowOop* p) { DefNewGeneration::FastKeepAliveClosure::do_oop_work(p); }
 
-DefNewGeneration::EvacuateFollowersClosure::
-EvacuateFollowersClosure(GenCollectedHeap* gch,
-                         ScanClosure* cur,
-                         ScanClosure* older) :
-  _gch(gch), _scan_cur_or_nonheap(cur), _scan_older(older)
-{}
-
-void DefNewGeneration::EvacuateFollowersClosure::do_void() {
-  do {
-    _gch->oop_since_save_marks_iterate(GenCollectedHeap::YoungGen, _scan_cur_or_nonheap, _scan_older);
-  } while (!_gch->no_allocs_since_save_marks());
-}
-
 DefNewGeneration::FastEvacuateFollowersClosure::
 FastEvacuateFollowersClosure(GenCollectedHeap* gch,
                              FastScanClosure* cur,
--- a/src/hotspot/share/gc/serial/defNewGeneration.hpp	Mon May 07 14:42:00 2018 +0200
+++ b/src/hotspot/share/gc/serial/defNewGeneration.hpp	Mon May 07 14:42:04 2018 +0200
@@ -178,16 +178,6 @@
     virtual void do_oop(narrowOop* p);
   };
 
-  class EvacuateFollowersClosure: public VoidClosure {
-    GenCollectedHeap* _gch;
-    ScanClosure* _scan_cur_or_nonheap;
-    ScanClosure* _scan_older;
-  public:
-    EvacuateFollowersClosure(GenCollectedHeap* gch,
-                             ScanClosure* cur, ScanClosure* older);
-    void do_void();
-  };
-
   class FastEvacuateFollowersClosure: public VoidClosure {
     GenCollectedHeap* _gch;
     DefNewGeneration* _young_gen;