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

ObjectMonitor::try_lock_or_add_to_entry_list() returns true with the wrong state of the node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • None
    • hotspot

      ObjectMonitor::try_lock_or_add_to_entry_list() does not change the node's state back to TS_RUN before returning true in case of successful monitor grabbing.

      This may lead to breaking the guarantee(node.TState == ObjectWaiter::TS_RUN, "invariant") statement in ObjectMonitor::wait() code.

      Spotted during a visual inspection.

            aartemov Anton Artemov
            aartemov Anton Artemov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: