1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Wed Jun 25 15:51:15 2014 -0700 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Thu Jun 19 13:31:14 2014 +0200 1.3 @@ -1305,7 +1305,7 @@ 1.4 TraceCPUTime tcpu(G1Log::finer(), true, gclog_or_tty); 1.5 1.6 { 1.7 - GCTraceTime t(GCCauseString("Full GC", gc_cause()), G1Log::fine(), true, NULL); 1.8 + GCTraceTime t(GCCauseString("Full GC", gc_cause()), G1Log::fine(), true, NULL, gc_tracer->gc_id()); 1.9 TraceCollectorStats tcs(g1mm()->full_collection_counters()); 1.10 TraceMemoryManagerStats tms(true /* fullGC */, gc_cause()); 1.11 1.12 @@ -3893,8 +3893,7 @@ 1.13 return; 1.14 } 1.15 1.16 - gclog_or_tty->date_stamp(PrintGCDateStamps); 1.17 - gclog_or_tty->stamp(PrintGCTimeStamps); 1.18 + gclog_or_tty->gclog_stamp(_gc_tracer_stw->gc_id()); 1.19 1.20 GCCauseString gc_cause_str = GCCauseString("GC pause", gc_cause()) 1.21 .append(g1_policy()->gcs_are_young() ? "(young)" : "(mixed)") 1.22 @@ -5781,7 +5780,8 @@ 1.23 &keep_alive, 1.24 &drain_queue, 1.25 NULL, 1.26 - _gc_timer_stw); 1.27 + _gc_timer_stw, 1.28 + _gc_tracer_stw->gc_id()); 1.29 } else { 1.30 // Parallel reference processing 1.31 assert(rp->num_q() == no_of_gc_workers, "sanity"); 1.32 @@ -5792,7 +5792,8 @@ 1.33 &keep_alive, 1.34 &drain_queue, 1.35 &par_task_executor, 1.36 - _gc_timer_stw); 1.37 + _gc_timer_stw, 1.38 + _gc_tracer_stw->gc_id()); 1.39 } 1.40 1.41 _gc_tracer_stw->report_gc_reference_stats(stats);