Skip to content

Commit

Permalink
8329109: Threads::print_on() tries to print CPU time for terminated G…
Browse files Browse the repository at this point in the history
…C threads

Backport-of: c1cfb43d8de8d0eed01b9bb6aa1202dc7cbff007
  • Loading branch information
Liang Mao authored and RealCLanger committed May 23, 2024
1 parent cdfe2f4 commit fe4a2ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hotspot/share/runtime/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,10 +1317,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();
}
Expand Down

1 comment on commit fe4a2ae

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.