comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp @ 6064:9d679effd28c

7166894: Add gc cause to GC logging for all collectors Reviewed-by: mgerdin, johnc
author brutisso
date Tue, 15 May 2012 10:25:06 +0200
parents ab4422d0ed59
children d2a62e0f25eb
comparison
equal deleted inserted replaced
6063:cdfa5139bd58 6064:9d679effd28c
323 ResourceMark rm; 323 ResourceMark rm;
324 HandleMark hm; 324 HandleMark hm;
325 325
326 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); 326 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps);
327 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); 327 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty);
328 TraceTime t1("GC", PrintGC, !PrintGCDetails, gclog_or_tty); 328 TraceTime t1(GCCauseString("GC", gc_cause), PrintGC, !PrintGCDetails, gclog_or_tty);
329 TraceCollectorStats tcs(counters()); 329 TraceCollectorStats tcs(counters());
330 TraceMemoryManagerStats tms(false /* not full GC */,gc_cause); 330 TraceMemoryManagerStats tms(false /* not full GC */,gc_cause);
331 331
332 if (TraceGen0Time) accumulated_time()->start(); 332 if (TraceGen0Time) accumulated_time()->start();
333 333