mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8184286: print_tracing_info() does not use Unified Logging for output
Reviewed-by: ehelin, sangheki
This commit is contained in:
parent
2a93b38ee9
commit
52c73dd8a9
8 changed files with 31 additions and 43 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue