Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit a3e51ec

Browse files
Liang MaoRealCLanger
Liang Mao
authored andcommitted
8329109: Threads::print_on() tries to print CPU time for terminated GC threads
Backport-of: c1cfb43d8de8d0eed01b9bb6aa1202dc7cbff007
1 parent ae8dae9 commit a3e51ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hotspot/share/runtime/threads.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -1319,10 +1319,7 @@ void Threads::print_on(outputStream* st, bool print_stacks,
13191319
}
13201320

13211321
PrintOnClosure cl(st);
1322-
cl.do_thread(VMThread::vm_thread());
1323-
Universe::heap()->gc_threads_do(&cl);
1324-
cl.do_thread(WatcherThread::watcher_thread());
1325-
cl.do_thread(AsyncLogWriter::instance());
1322+
non_java_threads_do(&cl);
13261323

13271324
st->flush();
13281325
}

0 commit comments

Comments
 (0)