8329109: Threads::print_on() tries to print CPU time for terminated GC threads

Reviewed-by: mbaesken, dholmes, ayang
This commit is contained in:
Richard Reingruber 2024-04-05 06:27:08 +00:00
parent 5860a48c71
commit c1cfb43d8d

View File

@ -1336,10 +1336,7 @@ void Threads::print_on(outputStream* st, bool print_stacks,
}
PrintOnClosure cl(st);
cl.do_thread(VMThread::vm_thread());
Universe::heap()->gc_threads_do(&cl);
cl.do_thread(WatcherThread::watcher_thread());
cl.do_thread(AsyncLogWriter::instance());
non_java_threads_do(&cl);
st->flush();
}