--- old/src/share/vm/gc/parallel/psMarkSweep.cpp 2017-09-01 13:03:00.722249283 +0200 +++ new/src/share/vm/gc/parallel/psMarkSweep.cpp 2017-09-01 13:03:00.570243242 +0200 @@ -174,7 +174,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(); @@ -343,7 +343,7 @@ // We collected the heap, recalculate the metaspace capacity MetaspaceGC::compute_new_size(); - if (TraceOldGenTime) accumulated_time()->stop(); + if (log_is_enabled(Debug, gc, heap, exit)) accumulated_time()->stop(); young_gen->print_used_change(young_gen_prev_used); old_gen->print_used_change(old_gen_prev_used);