6885041: G1: inconsistent thread dump

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
This commit is contained in:
Antonios Printezis 2009-10-02 16:12:07 -04:00
parent e379759e1b
commit 99a529bb86
11 changed files with 55 additions and 33 deletions

View file

@ -286,10 +286,14 @@ void ConcurrentMarkThread::stop() {
}
}
void ConcurrentMarkThread::print() {
gclog_or_tty->print("\"Concurrent Mark GC Thread\" ");
Thread::print();
gclog_or_tty->cr();
void ConcurrentMarkThread::print() const {
print_on(tty);
}
void ConcurrentMarkThread::print_on(outputStream* st) const {
st->print("\"G1 Main Concurrent Mark GC Thread\" ");
Thread::print_on(st);
st->cr();
}
void ConcurrentMarkThread::sleepBeforeNextCycle() {