Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 2039:7c5250dbd584
6896624: G1: hotspot:::gc and hotspot:::mem-pool-gc probes are not fired
Summary: Fire the gc-begin and gc-end probes for G1.
Reviewed-by: kamg, ysr, jcoomes
author | tonyp |
---|---|
date | Sun, 19 Dec 2010 20:57:16 -0500 |
parents | 74ee0db180fa |
children | 7246a374a9f2 2250ee17e258 |
comparison
equal
deleted
inserted
replaced
2038:74ee0db180fa | 2039: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 |