8201175: Move FilteringClosure::do_oop to genOopClosures
Reviewed-by: tschatzl, sjohanss
--- 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)