comparison src/share/vm/gc_implementation/g1/vm_operations_g1.cpp @ 20190:0982ec23da03

8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps Reviewed-by: jwilhelm, ehelin, tschatzl
author brutisso
date Thu, 19 Jun 2014 13:31:14 +0200
parents f7d3b4387a16
children 227a9e5e4b4a
comparison
equal deleted inserted replaced
20189:5d855d021755 20190:0982ec23da03
224 } 224 }
225 225
226 void VM_CGC_Operation::doit() { 226 void VM_CGC_Operation::doit() {
227 gclog_or_tty->date_stamp(G1Log::fine() && PrintGCDateStamps); 227 gclog_or_tty->date_stamp(G1Log::fine() && PrintGCDateStamps);
228 TraceCPUTime tcpu(G1Log::finer(), true, gclog_or_tty); 228 TraceCPUTime tcpu(G1Log::finer(), true, gclog_or_tty);
229 GCTraceTime t(_printGCMessage, G1Log::fine(), true, G1CollectedHeap::heap()->gc_timer_cm()); 229 GCTraceTime t(_printGCMessage, G1Log::fine(), true, G1CollectedHeap::heap()->gc_timer_cm(), G1CollectedHeap::heap()->concurrent_mark()->concurrent_gc_id());
230 SharedHeap* sh = SharedHeap::heap(); 230 SharedHeap* sh = SharedHeap::heap();
231 // This could go away if CollectedHeap gave access to _gc_is_active... 231 // This could go away if CollectedHeap gave access to _gc_is_active...
232 if (sh != NULL) { 232 if (sh != NULL) {
233 IsGCActiveMark x; 233 IsGCActiveMark x;
234 _cl->do_void(); 234 _cl->do_void();