// State of the G1 collection. class G1CollectorState { // Indicates whether we are in the phase where we do partial gcs that only contain // the young generation. Not set while _in_full_gc is set. bool _in_young_only_phase;
// Indicates whether we are in the last young gc before the mixed gc phase. This GC // is required to keep pause time requirements. bool _in_young_gc_before_mixed;
// If _initiate_conc_mark_if_possible is set at the beginning of a // pause, it is a suggestion that the pause should start a marking // cycle by doing the concurrent start work. However, it is possible // that the concurrent marking thread is still finishing up the // previous marking cycle (e.g., clearing the marking bitmap). // If that is the case we cannot start a new cycle and // we'll have to wait for the concurrent marking thread to finish // what it is doing. In this case we will postpone the marking cycle // initiation decision for the next pause. When we eventually decide // to start a cycle, we will set _in_concurrent_start_gc which // will stay true until the end of the concurrent start pause doing the // concurrent start work. volatilebool _in_concurrent_start_gc;
// At the end of a pause we check the heap occupancy and we decide // whether we will start a marking cycle during the next pause. If // we decide that we want to do that, set this parameter. This parameter will // stay set until the beginning of a subsequent pause (not necessarily // the next one) when we decide that we will indeed start a marking cycle and // do the concurrent start phase work. volatilebool _initiate_conc_mark_if_possible;
// Marking or rebuilding remembered set work is in progress. Set from the end // of the concurrent start pause to the end of the Cleanup pause. bool _mark_or_rebuild_in_progress;
// The marking bitmap is currently being cleared or about to be cleared. bool _clearing_bitmap;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.