src/hotspot/share/memory/iterator.hpp
changeset 47676 b1c020fc35a3
parent 47580 96392e113a0a
child 49329 04ed29f9ef33
--- a/src/hotspot/share/memory/iterator.hpp	Mon Oct 23 03:15:19 2017 -0400
+++ b/src/hotspot/share/memory/iterator.hpp	Mon Oct 23 11:20:53 2017 +0200
@@ -48,6 +48,13 @@
   virtual void do_oop(narrowOop* o) = 0;
 };
 
+class DoNothingClosure : public OopClosure {
+ public:
+  virtual void do_oop(oop* p)       {}
+  virtual void do_oop(narrowOop* p) {}
+};
+extern DoNothingClosure do_nothing_cl;
+
 // ExtendedOopClosure adds extra code to be run during oop iterations.
 // This is needed by the GC and is extracted to a separate type to not
 // pollute the OopClosure interface.