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

JVMTI Spec: Clarify the location at which MonitorWait/MonitorWaited events occur

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Won't Fix
    • 6
    • 10
    • hotspot
    • generic
    • generic

    Description

      The JVMTI spec for MonitorWait says
        Sent when a thread is about to wait on an object

      The javadoc for Object.wait() says:

         This method causes the current thread (call it T) to place itself in the wait
         set for this object and then to relinquish any and all synchronization claims on this object.

      Should the JVMTI spec should be clearer about just what state the thread
      is in when the event occurs, relative to the above description? EG?

      - has the thread placed itself in the wait state?
      - has the thread relinquished synch claims?

      For example, if a ContendedMonitorEntered event is enabled for this monitor,
      and will be sent, will it be sent before or after the MonitorWait event?

      Ditto the above for MonitorWaited.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jjh James Holmlund (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: