mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6733980: par compact - TraceGen1Time always shows 0.0000 seconds
Use the correct collector to retrieve accumulated gen1 trace time Reviewed-by: johnc, jmasa
This commit is contained in:
parent
a4a4c34e96
commit
e1df78e390
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ void ParallelScavengeHeap::print_tracing_info() const {
|
|||
tty->print_cr("[Accumulated GC generation 0 time %3.7f secs]", time);
|
||||
}
|
||||
if (TraceGen1Time) {
|
||||
double time = PSMarkSweep::accumulated_time()->seconds();
|
||||
double time = UseParallelOldGC ? PSParallelCompact::accumulated_time()->seconds() : PSMarkSweep::accumulated_time()->seconds();
|
||||
tty->print_cr("[Accumulated GC generation 1 time %3.7f secs]", time);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue