src/hotspot/share/gc/g1/g1CollectedHeap.hpp
changeset 59153 1152339c298a
parent 59115 a129f10e1b9a
child 59198 92c98aa0f801
equal deleted inserted replaced
59152:59272e9e0635 59153:1152339c298a
  1164   // Iteration functions.
  1164   // Iteration functions.
  1165 
  1165 
  1166   // Iterate over all objects, calling "cl.do_object" on each.
  1166   // Iterate over all objects, calling "cl.do_object" on each.
  1167   virtual void object_iterate(ObjectClosure* cl);
  1167   virtual void object_iterate(ObjectClosure* cl);
  1168 
  1168 
  1169   virtual void safe_object_iterate(ObjectClosure* cl) {
       
  1170     object_iterate(cl);
       
  1171   }
       
  1172 
       
  1173   // Iterate over heap regions, in address order, terminating the
  1169   // Iterate over heap regions, in address order, terminating the
  1174   // iteration early if the "do_heap_region" method returns "true".
  1170   // iteration early if the "do_heap_region" method returns "true".
  1175   void heap_region_iterate(HeapRegionClosure* blk) const;
  1171   void heap_region_iterate(HeapRegionClosure* blk) const;
  1176 
  1172 
  1177   // Return the region with the given index. It assumes the index is valid.
  1173   // Return the region with the given index. It assumes the index is valid.