8201175: Move FilteringClosure::do_oop to genOopClosures
authorstefank
Tue, 10 Apr 2018 12:18:42 +0200
changeset 49732 c09da96f609e
parent 49731 635838cb8b3a
child 49733 6f0a3ea5ab75
8201175: Move FilteringClosure::do_oop to genOopClosures Reviewed-by: tschatzl, sjohanss
src/hotspot/share/gc/serial/defNewGeneration.cpp
src/hotspot/share/gc/shared/genOopClosures.cpp
--- a/src/hotspot/share/gc/serial/defNewGeneration.cpp	Tue Apr 10 12:17:16 2018 +0200
+++ b/src/hotspot/share/gc/serial/defNewGeneration.cpp	Tue Apr 10 12:18:42 2018 +0200
@@ -174,9 +174,6 @@
 void ScanWeakRefClosure::do_oop(oop* p)       { ScanWeakRefClosure::do_oop_work(p); }
 void ScanWeakRefClosure::do_oop(narrowOop* p) { ScanWeakRefClosure::do_oop_work(p); }
 
-void FilteringClosure::do_oop(oop* p)       { FilteringClosure::do_oop_work(p); }
-void FilteringClosure::do_oop(narrowOop* p) { FilteringClosure::do_oop_work(p); }
-
 DefNewGeneration::DefNewGeneration(ReservedSpace rs,
                                    size_t initial_size,
                                    const char* policy)
--- a/src/hotspot/share/gc/shared/genOopClosures.cpp	Tue Apr 10 12:17:16 2018 +0200
+++ b/src/hotspot/share/gc/shared/genOopClosures.cpp	Tue Apr 10 12:18:42 2018 +0200
@@ -26,5 +26,8 @@
 #include "gc/shared/specialized_oop_closures.hpp"
 #include "memory/iterator.inline.hpp"
 
+void FilteringClosure::do_oop(oop* p)       { do_oop_nv(p); }
+void FilteringClosure::do_oop(narrowOop* p) { do_oop_nv(p); }
+
 // Generate Serial GC specialized oop_oop_iterate functions.
 SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_S(ALL_KLASS_OOP_OOP_ITERATE_DEFN)