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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-svc

      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: