< 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; }
+ bool set_promotion_failed() { _has_promotion_failed = 1; }
+ bool reset_promotion_failed() { _has_promotion_failed = 0; }
+
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 >