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

Split Split Close
Expand all
Collapse all
          --- old/src/share/vm/memory/genCollectedHeap.cpp
          +++ new/src/share/vm/memory/genCollectedHeap.cpp
↓ open down ↓ 469 lines elided ↑ open up ↑
 470  470  
 471  471    const size_t perm_prev_used = perm_gen()->used();
 472  472  
 473  473    print_heap_before_gc();
 474  474  
 475  475    {
 476  476      FlagSetting fl(_is_gc_active, true);
 477  477  
 478  478      bool complete = full && (max_level == (n_gens()-1));
 479  479      const char* gc_cause_prefix = complete ? "Full GC" : "GC";
 480      -    gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps);
 481  480      TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty);
 482  481      GCTraceTime t(GCCauseString(gc_cause_prefix, gc_cause()), PrintGCDetails, false, NULL);
 483  482  
 484  483      gc_prologue(complete);
 485  484      increment_total_collections(complete);
 486  485  
 487  486      size_t gch_prev_used = used();
 488  487  
 489  488      int starting_level = 0;
 490  489      if (full) {
↓ open down ↓ 965 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX