Skip to content

Commit fe4a2ae

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 cdfe2f4 commit fe4a2ae

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
@@ -1317,10 +1317,7 @@ void Threads::print_on(outputStream* st, bool print_stacks,
13171317
}
13181318

13191319
PrintOnClosure cl(st);
1320-
cl.do_thread(VMThread::vm_thread());
1321-
Universe::heap()->gc_threads_do(&cl);
1322-
cl.do_thread(WatcherThread::watcher_thread());
1323-
cl.do_thread(AsyncLogWriter::instance());
1320+
non_java_threads_do(&cl);
13241321

13251322
st->flush();
13261323
}

0 commit comments

Comments
 (0)