On Thu, 2 Apr 2026 09:19:50 GMT, Kevin Walls <[email protected]> wrote:
>> The JSON format thread dump generated by HotSpotDiagnosticMXBean.dumpThreads
>> links to a description of the thread dump format in "draft JSON Schema
>> Language version 2". This draft is obsolete and the linked document doesn't
>> even adhere to that draft.
>>
>> It would be simpler to document the format in a html file linked from the
>> method. There are changes to the format, no spec change.
>
> src/jdk.management/share/classes/com/sun/management/doc-files/threadDump.html
> line 194:
>
>> 192: <td> object </td>
>> 193: <td> yes </td>
>> 194: <td> The {@linkplain java.util.Objects#toIdentityString(Object)
>> identity string} of the
>
> Is parkBlocker an identity string, or is it the object defined below?
The JSON object has two members, one for the blocker object, the other for the
exclusive owner thread when owned. You are right that the current description
isn't clear as the description for parkBlocker/object is showing up in the
description of the parkBlocker JSON object.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30539#discussion_r3027061719