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

Add precondition in VMThread::execute to prevent deadlock

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • b16

      It's unsafe for a thread belonging to the SuspendibleThreadSet to request VM operation, because an on-the-fly safepoint can be waiting for the requesting thread, and the requesting thread will be blocked, waiting for the next VM op to become the right one.

      Add precondition to catch these cases.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: