changeset 49657:c09da96f609e

8201175: Move FilteringClosure::do_oop to genOopClosures Reviewed-by: tschatzl, sjohanss
author stefank
date Tue, 10 Apr 2018 12:18:42 +0200
parents 635838cb8b3a
children 6f0a3ea5ab75
files src/hotspot/share/gc/serial/defNewGeneration.cpp src/hotspot/share/gc/shared/genOopClosures.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)