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

Add raw monitor rank support to the debug agent

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • 23
    • core-svc
    • None

      The debug agent uses a lot of different JVMTI raw monitor. It's very easy to get a deadlock if they are entered in the wrong order. I recently ran across a deadlock where this was happening. There currently is no checking to make sure that raw monitor are entered in the proper order.

      All of the debug agent raw monitor should be given a rank, and asserts added to make sure that raw monitor are entered in the order of their rank. This will help detect potential deadlocks. The debug agent already has wrapper functions for the JVMTI raw monitor APIs. The rank bookkeeping and asserts can be added there.

            cjplummer Chris Plummer
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: