From c1cfb43d8de8d0eed01b9bb6aa1202dc7cbff007 Mon Sep 17 00:00:00 2001 From: Richard Reingruber Date: Fri, 5 Apr 2024 06:27:08 +0000 Subject: [PATCH] 8329109: Threads::print_on() tries to print CPU time for terminated GC threads Reviewed-by: mbaesken, dholmes, ayang --- src/hotspot/share/runtime/threads.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hotspot/share/runtime/threads.cpp b/src/hotspot/share/runtime/threads.cpp index 6c3e7e738f2..30c1ce042b7 100644 --- a/src/hotspot/share/runtime/threads.cpp +++ b/src/hotspot/share/runtime/threads.cpp @@ -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(); }