On Sat, 24 May 2025 00:17:26 GMT, Alex Menkov <amen...@openjdk.org> wrote:
> This is first (hotspot) part of the update for > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` to > include lock information in thread dumps (JDK-8356870). > The update has been split into parts to simplify reviewing. > The fix contains an implementation of `jdk.internal.vm.ThreadSnapshot` class > to gather required information about a thread. > Second (dependent) part includes changes in > `HotSpotDiagnosticMXBean.dumpThreads`/`jcmd Thread.dump_to_file`, spec > updates and tests for the functionality. > > Testing: new `HotSpotDiagnosticMXBean.dumpThreads`/`jcmd Thread.dump_to_file` > functionality was tested in loom repo; > sanity tier1 (this fix only) This pull request has now been integrated. Changeset: 406f1bc5 Author: Alex Menkov <amen...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/406f1bc5b94408778063b885cdac807fd1501e44 Stats: 716 lines in 10 files changed: 712 ins; 0 del; 4 mod 8357650: ThreadSnapshot to take snapshot of thread for thread dumps Co-authored-by: Alan Bateman <al...@openjdk.org> Co-authored-by: Alex Menkov <amen...@openjdk.org> Reviewed-by: sspitsyn, kevinw ------------- PR: https://git.openjdk.org/jdk/pull/25425