Add precondition in VMThread::execute to prevent deadlock

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: