1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Mon Oct 05 05:51:22 2009 -0700 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Fri Oct 02 16:12:07 2009 -0400 1.3 @@ -2383,27 +2383,18 @@ 1.4 _hrs->iterate(&blk); 1.5 } 1.6 1.7 -class PrintOnThreadsClosure : public ThreadClosure { 1.8 - outputStream* _st; 1.9 -public: 1.10 - PrintOnThreadsClosure(outputStream* st) : _st(st) { } 1.11 - virtual void do_thread(Thread *t) { 1.12 - t->print_on(_st); 1.13 - } 1.14 -}; 1.15 - 1.16 void G1CollectedHeap::print_gc_threads_on(outputStream* st) const { 1.17 if (ParallelGCThreads > 0) { 1.18 - workers()->print_worker_threads(); 1.19 - } 1.20 - st->print("\"G1 concurrent mark GC Thread\" "); 1.21 - _cmThread->print(); 1.22 + workers()->print_worker_threads_on(st); 1.23 + } 1.24 + 1.25 + _cmThread->print_on(st); 1.26 st->cr(); 1.27 - st->print("\"G1 concurrent refinement GC Threads\" "); 1.28 - PrintOnThreadsClosure p(st); 1.29 - _cg1r->threads_do(&p); 1.30 - st->cr(); 1.31 - st->print("\"G1 zero-fill GC Thread\" "); 1.32 + 1.33 + _cm->print_worker_threads_on(st); 1.34 + 1.35 + _cg1r->print_worker_threads_on(st); 1.36 + 1.37 _czft->print_on(st); 1.38 st->cr(); 1.39 }