Print this page
rev 7125 : 7176220: 'Full GC' events miss date stamp information occasionally
Summary: Move date stamp logic into GCTraceTime
Reviewed-by: brutisso, tschatzl

Split Split Close
Expand all
Collapse all
          --- old/hotspot/src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
          +++ new/hotspot/src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
↓ open down ↓ 321 lines elided ↑ open up ↑
 322  322  
 323  323    if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) {
 324  324      HandleMark hm;  // Discard invalid handles created during verification
 325  325      Universe::verify(" VerifyBeforeGC:");
 326  326    }
 327  327  
 328  328    {
 329  329      ResourceMark rm;
 330  330      HandleMark hm;
 331  331  
 332      -    gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps);
 333  332      TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty);
 334  333      GCTraceTime t1(GCCauseString("GC", gc_cause), PrintGC, !PrintGCDetails, NULL, _gc_tracer.gc_id());
 335  334      TraceCollectorStats tcs(counters());
 336  335      TraceMemoryManagerStats tms(false /* not full GC */,gc_cause);
 337  336  
 338  337      if (TraceGen0Time) accumulated_time()->start();
 339  338  
 340  339      // Let the size policy know we're starting
 341  340      size_policy->minor_collection_begin();
 342  341  
↓ open down ↓ 530 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX