jdk.internal.vm.ThreadSnapshot takes a snapshot of a thread (name, stack trace, state, locks) for use HotSpotDiagnosticMXBean.dumpThreads and jcmd Thread.dump_to_file. The class/implementation is currently in the loom repo, need to bring it to main line to allow the thread dump be updated to include lock information.
- links to
-
Review(master) openjdk/jdk/25425