RFR: 8316735: Print LockStack in hs_err files

Martin Doerr mdoerr at openjdk.org
Fri Sep 22 09:54:25 UTC 2023


Example output:

Objects fast locked by this 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)

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

Commit messages:
 - 8316735: Print LockStack in hs_err files

Changes: https://git.openjdk.org/jdk/pull/15884/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15884&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316735
  Stats: 20 lines in 3 files changed: 19 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/15884.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15884/head:pull/15884

PR: https://git.openjdk.org/jdk/pull/15884


More information about the hotspot-dev mailing list