src/hotspot/share/gc/shared/generation.hpp
changeset 59153 1152339c298a
parent 59053 ba6c248cae19
equal deleted inserted replaced
59152:59272e9e0635 59153:1152339c298a
   468 
   468 
   469   // Iterate over all objects in the generation, calling "cl.do_object" on
   469   // Iterate over all objects in the generation, calling "cl.do_object" on
   470   // each.
   470   // each.
   471   virtual void object_iterate(ObjectClosure* cl);
   471   virtual void object_iterate(ObjectClosure* cl);
   472 
   472 
   473   // Iterate over all safe objects in the generation, calling "cl.do_object" on
       
   474   // each.  An object is safe if its references point to other objects in
       
   475   // the heap.  This defaults to object_iterate() unless overridden.
       
   476   virtual void safe_object_iterate(ObjectClosure* cl);
       
   477 
       
   478   // Apply "cl->do_oop" to (the address of) all and only all the ref fields
   473   // Apply "cl->do_oop" to (the address of) all and only all the ref fields
   479   // in the current generation that contain pointers to objects in younger
   474   // in the current generation that contain pointers to objects in younger
   480   // generations. Objects allocated since the last "save_marks" call are
   475   // generations. Objects allocated since the last "save_marks" call are
   481   // excluded.
   476   // excluded.
   482   virtual void younger_refs_iterate(OopsInGenClosure* cl, uint n_threads) = 0;
   477   virtual void younger_refs_iterate(OopsInGenClosure* cl, uint n_threads) = 0;