hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
changeset 24351 61b33cc6d3cf
parent 24244 2c7a1e5649bd
child 25070 ec13ac30b16d
equal deleted inserted replaced
24350:8d8c1012dacd 24351:61b33cc6d3cf
  1105 
  1105 
  1106   unsigned get_gc_time_stamp() {
  1106   unsigned get_gc_time_stamp() {
  1107     return _gc_time_stamp;
  1107     return _gc_time_stamp;
  1108   }
  1108   }
  1109 
  1109 
  1110   void reset_gc_time_stamp() {
  1110   inline void reset_gc_time_stamp();
  1111     _gc_time_stamp = 0;
       
  1112     OrderAccess::fence();
       
  1113     // Clear the cached CSet starting regions and time stamps.
       
  1114     // Their validity is dependent on the GC timestamp.
       
  1115     clear_cset_start_regions();
       
  1116   }
       
  1117 
  1111 
  1118   void check_gc_time_stamps() PRODUCT_RETURN;
  1112   void check_gc_time_stamps() PRODUCT_RETURN;
  1119 
  1113 
  1120   void increment_gc_time_stamp() {
  1114   inline void increment_gc_time_stamp();
  1121     ++_gc_time_stamp;
       
  1122     OrderAccess::fence();
       
  1123   }
       
  1124 
  1115 
  1125   // Reset the given region's GC timestamp. If it's starts humongous,
  1116   // Reset the given region's GC timestamp. If it's starts humongous,
  1126   // also reset the GC timestamp of its corresponding
  1117   // also reset the GC timestamp of its corresponding
  1127   // continues humongous regions too.
  1118   // continues humongous regions too.
  1128   void reset_gc_time_stamps(HeapRegion* hr);
  1119   void reset_gc_time_stamps(HeapRegion* hr);