equal
deleted
inserted
replaced
855 double elapsed_time_ms = (end_time_sec - _mark_remark_start_sec)*1000.0; |
855 double elapsed_time_ms = (end_time_sec - _mark_remark_start_sec)*1000.0; |
856 _concurrent_mark_remark_times_ms->add(elapsed_time_ms); |
856 _concurrent_mark_remark_times_ms->add(elapsed_time_ms); |
857 _cur_mark_stop_world_time_ms += elapsed_time_ms; |
857 _cur_mark_stop_world_time_ms += elapsed_time_ms; |
858 _prev_collection_pause_end_ms += elapsed_time_ms; |
858 _prev_collection_pause_end_ms += elapsed_time_ms; |
859 |
859 |
860 _mmu_tracker->add_pause(_mark_remark_start_sec, end_time_sec, _g1->gc_tracer_cm()->gc_id()); |
860 _mmu_tracker->add_pause(_mark_remark_start_sec, end_time_sec); |
861 } |
861 } |
862 |
862 |
863 void G1CollectorPolicy::record_concurrent_mark_cleanup_start() { |
863 void G1CollectorPolicy::record_concurrent_mark_cleanup_start() { |
864 _mark_cleanup_start_sec = os::elapsedTime(); |
864 _mark_cleanup_start_sec = os::elapsedTime(); |
865 } |
865 } |
950 // pause we decided to start a cycle but at the beginning of |
950 // pause we decided to start a cycle but at the beginning of |
951 // this pause we decided to postpone it. That's OK. |
951 // this pause we decided to postpone it. That's OK. |
952 collector_state()->set_initiate_conc_mark_if_possible(true); |
952 collector_state()->set_initiate_conc_mark_if_possible(true); |
953 } |
953 } |
954 |
954 |
955 _mmu_tracker->add_pause(end_time_sec - pause_time_ms/1000.0, |
955 _mmu_tracker->add_pause(end_time_sec - pause_time_ms/1000.0, end_time_sec); |
956 end_time_sec, _g1->gc_tracer_stw()->gc_id()); |
|
957 |
956 |
958 if (update_stats) { |
957 if (update_stats) { |
959 _trace_young_gen_time_data.record_end_collection(pause_time_ms, phase_times()); |
958 _trace_young_gen_time_data.record_end_collection(pause_time_ms, phase_times()); |
960 // this is where we update the allocation rate of the application |
959 // this is where we update the allocation rate of the application |
961 double app_time_ms = |
960 double app_time_ms = |
1582 double end_sec = os::elapsedTime(); |
1581 double end_sec = os::elapsedTime(); |
1583 double elapsed_time_ms = (end_sec - _mark_cleanup_start_sec) * 1000.0; |
1582 double elapsed_time_ms = (end_sec - _mark_cleanup_start_sec) * 1000.0; |
1584 _concurrent_mark_cleanup_times_ms->add(elapsed_time_ms); |
1583 _concurrent_mark_cleanup_times_ms->add(elapsed_time_ms); |
1585 _cur_mark_stop_world_time_ms += elapsed_time_ms; |
1584 _cur_mark_stop_world_time_ms += elapsed_time_ms; |
1586 _prev_collection_pause_end_ms += elapsed_time_ms; |
1585 _prev_collection_pause_end_ms += elapsed_time_ms; |
1587 _mmu_tracker->add_pause(_mark_cleanup_start_sec, end_sec, _g1->gc_tracer_cm()->gc_id()); |
1586 _mmu_tracker->add_pause(_mark_cleanup_start_sec, end_sec); |
1588 } |
1587 } |
1589 |
1588 |
1590 // Add the heap region at the head of the non-incremental collection set |
1589 // Add the heap region at the head of the non-incremental collection set |
1591 void G1CollectorPolicy::add_old_region_to_cset(HeapRegion* hr) { |
1590 void G1CollectorPolicy::add_old_region_to_cset(HeapRegion* hr) { |
1592 assert(_inc_cset_build_state == Active, "Precondition"); |
1591 assert(_inc_cset_build_state == Active, "Precondition"); |