41 |
41 |
42 void VM_G1IncCollectionPause::doit() { |
42 void VM_G1IncCollectionPause::doit() { |
43 JvmtiGCForAllocationMarker jgcm; |
43 JvmtiGCForAllocationMarker jgcm; |
44 G1CollectedHeap* g1h = G1CollectedHeap::heap(); |
44 G1CollectedHeap* g1h = G1CollectedHeap::heap(); |
45 GCCauseSetter x(g1h, GCCause::_g1_inc_collection_pause); |
45 GCCauseSetter x(g1h, GCCause::_g1_inc_collection_pause); |
46 g1h->do_collection_pause_at_safepoint(NULL); |
46 g1h->do_collection_pause_at_safepoint(); |
47 } |
47 } |
48 |
|
49 void VM_G1PopRegionCollectionPause::doit() { |
|
50 JvmtiGCForAllocationMarker jgcm; |
|
51 G1CollectedHeap* g1h = G1CollectedHeap::heap(); |
|
52 g1h->do_collection_pause_at_safepoint(_pop_region); |
|
53 } |
|
54 |
|
55 |
48 |
56 void VM_CGC_Operation::doit() { |
49 void VM_CGC_Operation::doit() { |
57 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); |
50 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); |
58 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); |
51 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); |
59 TraceTime t(_printGCMessage, PrintGC, true, gclog_or_tty); |
52 TraceTime t(_printGCMessage, PrintGC, true, gclog_or_tty); |