< prev index next >

src/hotspot/share/memory/iterator.hpp

Print this page
@@ -52,10 +52,12 @@
  // OopClosure is used for iterating through references to Java objects.
  class OopClosure : public Closure {
   public:
    virtual void do_oop(oop* o) = 0;
    virtual void do_oop(narrowOop* o) = 0;
+   virtual void do_oop_no_buffering(oop* o) { do_oop(o); }
+   virtual void do_oop_no_buffering(narrowOop* o) { do_oop(o); }
  };
  
  class DoNothingClosure : public OopClosure {
   public:
    virtual void do_oop(oop* p)       {}

@@ -112,10 +114,15 @@
    virtual bool do_metadata() { return false; }
    virtual void do_klass(Klass* k) { ShouldNotReachHere(); }
    virtual void do_cld(ClassLoaderData* cld) { ShouldNotReachHere(); }
  };
  
+ class BufferedValueClosure : public Closure {
+ public:
+   virtual void do_buffered_value(oop* p) = 0;
+ };
+ 
  class KlassClosure : public Closure {
   public:
    virtual void do_klass(Klass* k) = 0;
  };
  
< prev index next >