< prev index next >

src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp

Print this page

        

@@ -1115,10 +1115,18 @@
 
   // Fraction of current occupancy at which to start a CMS collection which
   // will collect this generation (at least).
   double _initiating_occupancy;
 
+  // Set to true, if another GC thread already had a promotion failure.
+  bool _has_promotion_failed;
+
+  // Support for CMSFastPromotionFailure
+  bool has_promotion_failed()   { return _has_promotion_failed; }
+  void set_promotion_failed()   { _has_promotion_failed = true; }
+  void reset_promotion_failed() { _has_promotion_failed = false; }
+
  protected:
   // Shrink generation by specified size (returns false if unable to shrink)
   void shrink_free_list_by(size_t bytes);
 
   // Update statistics for GC
< prev index next >