6885993: Named Thread: introduce print() and print_on(outputStream* st) methods

Eliminating duplicated code by introducing print_on(outputStream* st) methods in NamedThread

Reviewed-by: twisti, coleenp, dholmes
This commit is contained in:
Zhengyu Gu 2014-05-01 05:52:28 -07:00
parent a792009a9f
commit 16a3e2f16d
14 changed files with 14 additions and 62 deletions

View file

@ -223,12 +223,6 @@ void ConcurrentMarkSweepThread::threads_do(ThreadClosure* tc) {
}
}
void ConcurrentMarkSweepThread::print_on(outputStream* st) const {
st->print("\"%s\" ", name());
Thread::print_on(st);
st->cr();
}
void ConcurrentMarkSweepThread::print_all_on(outputStream* st) {
if (_cmst != NULL) {
_cmst->print_on(st);