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

Need API to find out which thread has a specific monitor locked

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:

      Description

      Name: rmT116609 Date: 08/02/2004


      A DESCRIPTION OF THE REQUEST :
      The current API allows one to check if the current Thread holds a specific lock (Thread.holdsLock()) but what is needed is a programmatic way to determine: "if this object is locked, who holds it's lock?"

      If the object is not locked, return null, otherwise return the Thread holding the lock.

      JUSTIFICATION :
      Currently there is no way to programmatically retrieve this kind of deadlock information on a remote/head-less JVM.
      (Incident Review ID: 290569)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: