RFR: 8316735: Print LockStack in hs_err files [v2]

Matthias Baesken mbaesken at openjdk.org
Tue Sep 26 12:39:14 UTC 2023


On Mon, 25 Sep 2023 11:58:47 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> Example output:
>> 
>> Lock stack of current Java thread (top to bottom):
>> LockStack[1]: nsk.share.jdi.EventHandler 
>> {0x00000000bcc28198} - klass: 'nsk/share/jdi/EventHandler'
>>  - ---- fields (total size 5 words):
>>  - private volatile 'wasInterrupted' 'Z' @12  false (0x00)
>>  - private 'debuggee' 'Lnsk/share/jdi/Debugee;' @16  a 'nsk/share/jdi/LocalLaunchedDebugee'{0x00000000bcc08c18} (0xbcc08c18)
>>  - private 'log' 'Lnsk/share/Log;' @20  a 'nsk/share/Log'{0x00000000bcc08cb0} (0xbcc08cb0)
>>  - private 'vm' 'Lcom/sun/jdi/VirtualMachine;' @24  a 'com/sun/tools/jdi/VirtualMachineImpl'{0x00000000bccb3d60} (0xbccb3d60)
>>  - private 'requestManager' 'Lcom/sun/jdi/request/EventRequestManager;' @28  a 'com/sun/tools/jdi/EventRequestManagerImpl'{0x00000000bccb56f8} (0xbccb56f8)
>>  - private 'listenThread' 'Ljava/lang/Thread;' @32  a 'java/lang/Thread'{0x00000000bcc280e8} (0xbcc280e8)
>> LockStack[0]: java.util.Collections$SynchronizedRandomAccessList 
>> {0x00000000bcb163e8} - klass: 'java/util/Collections$SynchronizedRandomAccessList'
>>  - ---- fields (total size 3 words):
>>  - final 'c' 'Ljava/util/Collection;' @12  a 'java/util/Vector'{0x00000000bcb16400} (0xbcb16400)
>>  - final 'mutex' 'Ljava/lang/Object;' @16  a 'java/util/Collections$SynchronizedRandomAccessList'{0x00000000bcb163e8} (0xbcb163e8)
>>  - final 'list' 'Ljava/util/List;' @20  a 'java/util/Vector'{0x00000000bcb16400} (0xbcb16400)
>
> Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Move up and change wording.

LGTM

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

Marked as reviewed by mbaesken (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15884#pullrequestreview-1644158818


More information about the hotspot-dev mailing list