--- old/src/share/vm/gc/parallel/psParallelCompact.cpp 2017-09-01 13:03:01.338273762 +0200 +++ new/src/share/vm/gc/parallel/psParallelCompact.cpp 2017-09-01 13:03:01.206268516 +0200 @@ -1779,7 +1779,7 @@ TraceCollectorStats tcs(counters()); TraceMemoryManagerStats tms(true /* Full GC */,gc_cause); - if (TraceOldGenTime) accumulated_time()->start(); + if (log_is_enabled(Debug, gc, heap, exit)) accumulated_time()->start(); // Let the size policy know we're starting size_policy->major_collection_begin(); @@ -1898,7 +1898,7 @@ // Resize the metaspace capacity after a collection MetaspaceGC::compute_new_size(); - if (TraceOldGenTime) { + if (log_is_enabled(Debug, gc, heap, exit)) { accumulated_time()->stop(); }