Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274794

Print all owned locks in hs_err file

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • Verification:
      Fix failed

      Description

      The Thread::_owned_locks field and printing is only available in debug mode. It would be better if it can be used to print all the owned locks in the hs_err_pid file and not just those defined in mutexLocker.cpp.

      Instead have the mutex_array be populated in the Mutex constructor under a ThreadCritical lock. There are some Mutex added after initialization in mutexLocker.cpp but the overhead of saving these is minimal. This way all held locks will be printed in the hs_err file.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: