RFR: 8365057: Add support for java.util.concurrent lock information to Thread.dump_to_file [v2]

Alan Bateman alanb at openjdk.org
Thu Sep 25 06:36:48 UTC 2025


On Wed, 24 Sep 2025 19:59:55 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
>
> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   feedback

src/jdk.management/share/classes/com/sun/management/doc-files/threadDump.schema.json line 87:

> 85:                           "required": [
> 86:                             "object"
> 87:                           ]

At L122 the null in the items object should be in quotes, as in "null", and the description ending in ".. null if eliminated" needs a period. There were in the first prototype but didn't make it into the PR patch for some reason. (It came up when using the updated JSON schema, wasn't noticed previously).

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27457#discussion_r2377903090


More information about the serviceability-dev mailing list