Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 1019:035d2e036a9b
6885041: G1: inconsistent thread dump
Summary: When G1 is enabled, thread dumps are inconsistent as the info for some of the G1 threads is not formatted properly.
Reviewed-by: ysr, johnc
author | tonyp |
---|---|
date | Fri, 02 Oct 2009 16:12:07 -0400 |
parents | 54b3b351d6f9 |
children | 4c3458a31e17 |
comparison
equal
deleted
inserted
replaced
1018:8afee153274a | 1019:035d2e036a9b |
---|---|
541 gclog_or_tty->print_cr("CL Marking Task Overhead %1.4lf", cleanup_task_overhead()); | 541 gclog_or_tty->print_cr("CL Marking Task Overhead %1.4lf", cleanup_task_overhead()); |
542 gclog_or_tty->print_cr("CL Sleep Factor %1.4lf", cleanup_sleep_factor()); | 542 gclog_or_tty->print_cr("CL Sleep Factor %1.4lf", cleanup_sleep_factor()); |
543 #endif | 543 #endif |
544 | 544 |
545 guarantee( parallel_marking_threads() > 0, "peace of mind" ); | 545 guarantee( parallel_marking_threads() > 0, "peace of mind" ); |
546 _parallel_workers = new WorkGang("Parallel Marking Threads", | 546 _parallel_workers = new WorkGang("G1 Parallel Marking Threads", |
547 (int) parallel_marking_threads(), false, true); | 547 (int) parallel_marking_threads(), false, true); |
548 if (_parallel_workers == NULL) | 548 if (_parallel_workers == NULL) |
549 vm_exit_during_initialization("Failed necessary allocation."); | 549 vm_exit_during_initialization("Failed necessary allocation."); |
550 } | 550 } |
551 | 551 |
2633 gclog_or_tty->print_cr(" Total concurrent time = %8.2f s " | 2633 gclog_or_tty->print_cr(" Total concurrent time = %8.2f s " |
2634 "(%8.2f s marking, %8.2f s counting).", | 2634 "(%8.2f s marking, %8.2f s counting).", |
2635 cmThread()->vtime_accum(), | 2635 cmThread()->vtime_accum(), |
2636 cmThread()->vtime_mark_accum(), | 2636 cmThread()->vtime_mark_accum(), |
2637 cmThread()->vtime_count_accum()); | 2637 cmThread()->vtime_count_accum()); |
2638 } | |
2639 | |
2640 void ConcurrentMark::print_worker_threads_on(outputStream* st) const { | |
2641 _parallel_workers->print_worker_threads_on(st); | |
2638 } | 2642 } |
2639 | 2643 |
2640 // Closures | 2644 // Closures |
2641 // XXX: there seems to be a lot of code duplication here; | 2645 // XXX: there seems to be a lot of code duplication here; |
2642 // should refactor and consolidate the shared code. | 2646 // should refactor and consolidate the shared code. |