RFR: 8365057: Add support for java.util.concurrent lock information to Thread.dump_to_file
David Holmes
dholmes at openjdk.org
Wed Sep 24 06:41:15 UTC 2025
On Tue, 23 Sep 2025 20:22:31 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> The fix updates `jcmd Thread.dump_to_file`/`HotSpotDiagnosticMXBean.dumpThreads` implementation to report thread which owns parkBlocker.
>
> Testing: tier1..4,hs-tier5-svc
src/java.base/share/classes/jdk/internal/vm/ThreadSnapshot.java line 52:
> 50:
> 51: // the owner of the blockerObject when the object is park blocker and is AQS
> 52: private Thread parkBlockerOwner;
Just wondering whether it makes sense to make the owner field part of the `ThreadBlocker` record?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27457#discussion_r2374595923
More information about the serviceability-dev
mailing list