equal
deleted
inserted
replaced
536 CollectionSetChooser* G1DefaultPolicy::cset_chooser() const { |
536 CollectionSetChooser* G1DefaultPolicy::cset_chooser() const { |
537 return _collection_set->cset_chooser(); |
537 return _collection_set->cset_chooser(); |
538 } |
538 } |
539 |
539 |
540 bool G1DefaultPolicy::about_to_start_mixed_phase() const { |
540 bool G1DefaultPolicy::about_to_start_mixed_phase() const { |
541 return _g1->concurrent_mark()->cmThread()->during_cycle() || collector_state()->last_young_gc(); |
541 return _g1->concurrent_mark()->cm_thread()->during_cycle() || collector_state()->last_young_gc(); |
542 } |
542 } |
543 |
543 |
544 bool G1DefaultPolicy::need_to_start_conc_mark(const char* source, size_t alloc_word_size) { |
544 bool G1DefaultPolicy::need_to_start_conc_mark(const char* source, size_t alloc_word_size) { |
545 if (about_to_start_mixed_phase()) { |
545 if (about_to_start_mixed_phase()) { |
546 return false; |
546 return false; |
929 |
929 |
930 bool G1DefaultPolicy::force_initial_mark_if_outside_cycle(GCCause::Cause gc_cause) { |
930 bool G1DefaultPolicy::force_initial_mark_if_outside_cycle(GCCause::Cause gc_cause) { |
931 // We actually check whether we are marking here and not if we are in a |
931 // We actually check whether we are marking here and not if we are in a |
932 // reclamation phase. This means that we will schedule a concurrent mark |
932 // reclamation phase. This means that we will schedule a concurrent mark |
933 // even while we are still in the process of reclaiming memory. |
933 // even while we are still in the process of reclaiming memory. |
934 bool during_cycle = _g1->concurrent_mark()->cmThread()->during_cycle(); |
934 bool during_cycle = _g1->concurrent_mark()->cm_thread()->during_cycle(); |
935 if (!during_cycle) { |
935 if (!during_cycle) { |
936 log_debug(gc, ergo)("Request concurrent cycle initiation (requested by GC cause). GC cause: %s", GCCause::to_string(gc_cause)); |
936 log_debug(gc, ergo)("Request concurrent cycle initiation (requested by GC cause). GC cause: %s", GCCause::to_string(gc_cause)); |
937 collector_state()->set_initiate_conc_mark_if_possible(true); |
937 collector_state()->set_initiate_conc_mark_if_possible(true); |
938 return true; |
938 return true; |
939 } else { |
939 } else { |