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

Reviewed-by: rrich
Backport-of: c1cfb43d8de8d0eed01b9bb6aa1202dc7cbff007
  • Loading branch information
MBaesken committed Jul 10, 2024
1 parent 1e63af9 commit 3d83f3e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/hotspot/share/runtime/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3828,14 +3828,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);
if (StringDedup::is_enabled()) {
StringDedup::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 3d83f3e

@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.