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

missed JVMTI monitor events in wait-morphing code

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 7
    • hotspot
    • generic
    • generic

      Thread waiting on the monitor usually can't uncontentiously reenter the monitor
      after it gets notified because the monitor is still held by the notifying thread.
      The reworked wait-morphing synchronization code in notify/notifyAll does not unpark
      waiting thread anymore but simply shifts it from the Wait queue to the Entry queue.
      In such a case, waiting thread itself can't report JVMTI monitor "waited" and
      "contended_enter" events. So that, the "contended_enter" event is missed and the
      "waited" event is reported after thread is woken up.
      Current behavior is incorrect and must be fixed.

            Unassigned Unassigned
            sspitsyn Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: