Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp @ 8785:3c226052f7dc
6733980: par compact - TraceGen1Time always shows 0.0000 seconds
Summary: Use the correct collector to retrieve accumulated gen1 trace time
Reviewed-by: johnc, jmasa
author | tschatzl |
---|---|
date | Thu, 14 Mar 2013 09:37:38 +0100 |
parents | 82657b6a8cc0 |
children | 2e093b564241 |
comparison
equal
deleted
inserted
replaced
8784:79af1312fc2c | 8785:3c226052f7dc |
---|---|
654 if (TraceGen0Time) { | 654 if (TraceGen0Time) { |
655 double time = PSScavenge::accumulated_time()->seconds(); | 655 double time = PSScavenge::accumulated_time()->seconds(); |
656 tty->print_cr("[Accumulated GC generation 0 time %3.7f secs]", time); | 656 tty->print_cr("[Accumulated GC generation 0 time %3.7f secs]", time); |
657 } | 657 } |
658 if (TraceGen1Time) { | 658 if (TraceGen1Time) { |
659 double time = PSMarkSweep::accumulated_time()->seconds(); | 659 double time = UseParallelOldGC ? PSParallelCompact::accumulated_time()->seconds() : PSMarkSweep::accumulated_time()->seconds(); |
660 tty->print_cr("[Accumulated GC generation 1 time %3.7f secs]", time); | 660 tty->print_cr("[Accumulated GC generation 1 time %3.7f secs]", time); |
661 } | 661 } |
662 } | 662 } |
663 | 663 |
664 | 664 |