3211 G1CollectedHeap::do_collection_pause_at_safepoint(double target_pause_time_ms) { |
3212 G1CollectedHeap::do_collection_pause_at_safepoint(double target_pause_time_ms) { |
3212 if (GC_locker::check_active_before_gc()) { |
3213 if (GC_locker::check_active_before_gc()) { |
3213 return false; |
3214 return false; |
3214 } |
3215 } |
3215 |
3216 |
|
3217 DTraceGCProbeMarker gc_probe_marker(false /* full */); |
|
3218 ResourceMark rm; |
|
3219 |
3216 if (PrintHeapAtGC) { |
3220 if (PrintHeapAtGC) { |
3217 Universe::print_heap_before_gc(); |
3221 Universe::print_heap_before_gc(); |
3218 } |
3222 } |
3219 |
3223 |
3220 { |
3224 { |
3221 ResourceMark rm; |
|
3222 |
|
3223 // This call will decide whether this pause is an initial-mark |
3225 // This call will decide whether this pause is an initial-mark |
3224 // pause. If it is, during_initial_mark_pause() will return true |
3226 // pause. If it is, during_initial_mark_pause() will return true |
3225 // for the duration of this pause. |
3227 // for the duration of this pause. |
3226 g1_policy()->decide_on_conc_mark_initiation(); |
3228 g1_policy()->decide_on_conc_mark_initiation(); |
3227 |
3229 |