src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

changeset 2381
7c5250dbd584
parent 2380
74ee0db180fa
child 2445
7246a374a9f2
child 2453
2250ee17e258
equal deleted inserted replaced
2380:74ee0db180fa 2381:7c5250dbd584
1190 size_t word_size) { 1190 size_t word_size) {
1191 if (GC_locker::check_active_before_gc()) { 1191 if (GC_locker::check_active_before_gc()) {
1192 return false; 1192 return false;
1193 } 1193 }
1194 1194
1195 DTraceGCProbeMarker gc_probe_marker(true /* full */);
1195 ResourceMark rm; 1196 ResourceMark rm;
1196 1197
1197 if (PrintHeapAtGC) { 1198 if (PrintHeapAtGC) {
1198 Universe::print_heap_before_gc(); 1199 Universe::print_heap_before_gc();
1199 } 1200 }
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

mercurial