Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316735 Print LockStack in hs_err files
  3. JDK-8322345

Release Note: Hotspot `hs_err` Files Now Print the Lock Stack

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 22
    • 21.0.2, 22
    • hotspot

        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.

              mdoerr Martin Doerr
              lfoltan Lois Foltan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: