8184286: print_tracing_info() does not use Unified Logging for output

Reviewed-by: ehelin, sangheki
This commit is contained in:
Stefan Johansson 2017-09-21 14:32:05 +02:00
parent 2a93b38ee9
commit 52c73dd8a9
8 changed files with 31 additions and 43 deletions

View file

@ -1778,7 +1778,9 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
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();
@ -1897,7 +1899,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
// Resize the metaspace capacity after a collection
MetaspaceGC::compute_new_size();
if (TraceOldGenTime) {
if (log_is_enabled(Debug, gc, heap, exit)) {
accumulated_time()->stop();
}