-
Sub-task
-
Resolution: Delivered
-
P4
-
21.0.2, 22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8326832 | 21.0.2 | Marc Palmerjohnson | P4 | Resolved | Delivered |
A section containing the thread local lock stack has been added to `hs_err` report files. It only gets printed when the new lightweight locking mode is enabled (`-XX:LockingMode=2`).
An example is given here with details about the locked objects omitted:
```
Lock stack of current Java thread (top to bottom):
LockStack[1]: nsk.share.jdi.EventHandler
...
LockStack[0]: java.util.Collections$SynchronizedRandomAccessList
...
```
It lists objects which are lightweight locked, through `synchronized` methods or statements, by the Java thread which is being analyzed. The object which has been locked most recently is printed first. Objects which are not lightweight locked are not displayed in this section.
An example is given here with details about the locked objects omitted:
```
Lock stack of current Java thread (top to bottom):
LockStack[1]: nsk.share.jdi.EventHandler
...
LockStack[0]: java.util.Collections$SynchronizedRandomAccessList
...
```
It lists objects which are lightweight locked, through `synchronized` methods or statements, by the Java thread which is being analyzed. The object which has been locked most recently is printed first. Objects which are not lightweight locked are not displayed in this section.
- backported by
-
JDK-8326832 Release Note: Hotspot `hs_err` Files Now Print the Lock Stack
- Resolved