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

Print all owned locks in hs_err file

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • b21
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: