src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp

Print this page




 639 void ParallelScavengeHeap::print_on(outputStream* st) const {
 640   young_gen()->print_on(st);
 641   old_gen()->print_on(st);
 642   MetaspaceAux::print_on(st);
 643 }
 644 
 645 void ParallelScavengeHeap::gc_threads_do(ThreadClosure* tc) const {
 646   PSScavenge::gc_task_manager()->threads_do(tc);
 647 }
 648 
 649 void ParallelScavengeHeap::print_gc_threads_on(outputStream* st) const {
 650   PSScavenge::gc_task_manager()->print_threads_on(st);
 651 }
 652 
 653 void ParallelScavengeHeap::print_tracing_info() const {
 654   if (TraceGen0Time) {
 655     double time = PSScavenge::accumulated_time()->seconds();
 656     tty->print_cr("[Accumulated GC generation 0 time %3.7f secs]", time);
 657   }
 658   if (TraceGen1Time) {
 659     double time = PSMarkSweep::accumulated_time()->seconds();
 660     tty->print_cr("[Accumulated GC generation 1 time %3.7f secs]", time);
 661   }
 662 }
 663 
 664 
 665 void ParallelScavengeHeap::verify(bool silent, VerifyOption option /* ignored */) {
 666   // Why do we need the total_collections()-filter below?
 667   if (total_collections() > 0) {
 668     if (!silent) {
 669       gclog_or_tty->print("tenured ");
 670     }
 671     old_gen()->verify();
 672 
 673     if (!silent) {
 674       gclog_or_tty->print("eden ");
 675     }
 676     young_gen()->verify();
 677   }
 678 }
 679 




 639 void ParallelScavengeHeap::print_on(outputStream* st) const {
 640   young_gen()->print_on(st);
 641   old_gen()->print_on(st);
 642   MetaspaceAux::print_on(st);
 643 }
 644 
 645 void ParallelScavengeHeap::gc_threads_do(ThreadClosure* tc) const {
 646   PSScavenge::gc_task_manager()->threads_do(tc);
 647 }
 648 
 649 void ParallelScavengeHeap::print_gc_threads_on(outputStream* st) const {
 650   PSScavenge::gc_task_manager()->print_threads_on(st);
 651 }
 652 
 653 void ParallelScavengeHeap::print_tracing_info() const {
 654   if (TraceGen0Time) {
 655     double time = PSScavenge::accumulated_time()->seconds();
 656     tty->print_cr("[Accumulated GC generation 0 time %3.7f secs]", time);
 657   }
 658   if (TraceGen1Time) {
 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);
 661   }
 662 }
 663 
 664 
 665 void ParallelScavengeHeap::verify(bool silent, VerifyOption option /* ignored */) {
 666   // Why do we need the total_collections()-filter below?
 667   if (total_collections() > 0) {
 668     if (!silent) {
 669       gclog_or_tty->print("tenured ");
 670     }
 671     old_gen()->verify();
 672 
 673     if (!silent) {
 674       gclog_or_tty->print("eden ");
 675     }
 676     young_gen()->verify();
 677   }
 678 }
 679