< prev index next >

src/hotspot/share/gc/shared/genOopClosures.hpp

Print this page
*** 31,10 ***
--- 31,12 ---
  class Generation;
  class CardTableRS;
  class CardTableBarrierSet;
  class DefNewGeneration;
  class KlassRemSet;
+ class Method;
+ class nmethod;
  
  #if INCLUDE_SERIALGC
  
  // Super closure class for scanning DefNewGeneration.
  //

*** 114,10 ***
--- 116,12 ---
    virtual void do_oop(oop* p);
    virtual void do_oop(narrowOop* p);
    virtual bool do_metadata()            { assert(!_cl->do_metadata(), "assumption broken, must change to 'return _cl->do_metadata()'"); return false; }
    virtual void do_klass(Klass*)         { ShouldNotReachHere(); }
    virtual void do_cld(ClassLoaderData*) { ShouldNotReachHere(); }
+   virtual void do_method(Method*)       { ShouldNotReachHere(); }
+   virtual void do_nmethod(nmethod*)     { ShouldNotReachHere(); }
  };
  
  #if INCLUDE_SERIALGC
  
  // Closure for scanning DefNewGeneration's weak references.
< prev index next >