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/gc_implementation/parallelScavenge/psParallelCompact.cpp
          +++ new/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
↓ open down ↓ 2054 lines elided ↑ open up ↑
2055 2055  
2056 2056    {
2057 2057      ResourceMark rm;
2058 2058      HandleMark hm;
2059 2059  
2060 2060      // Set the number of GC threads to be used in this collection
2061 2061      gc_task_manager()->set_active_gang();
2062 2062      gc_task_manager()->task_idle_workers();
2063 2063      heap->set_par_threads(gc_task_manager()->active_workers());
2064 2064  
2065      -    gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps);
2066 2065      TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty);
2067 2066      GCTraceTime t1(GCCauseString("Full GC", gc_cause), PrintGC, !PrintGCDetails, NULL);
2068 2067      TraceCollectorStats tcs(counters());
2069 2068      TraceMemoryManagerStats tms(true /* Full GC */,gc_cause);
2070 2069  
2071 2070      if (TraceGen1Time) accumulated_time()->start();
2072 2071  
2073 2072      // Let the size policy know we're starting
2074 2073      size_policy->major_collection_begin();
2075 2074  
↓ open down ↓ 1444 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX