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.