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

Redundant suspend check when determining if a java thread is safe

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • None
    • b14

    Description

      In JDK-8221207 - "Redo JDK-8218446 - SuspendAtExit hangs" we fixed so a thread is always blocked when suspended.
      And added this nice assert.
      int JavaThread::java_suspend_self() {
        assert(thread_state() == _thread_blocked, "wrong state for java_suspend_self()");

      When checking if a thread is safepoint/handshake safe there no need to look at ext suspend flag anymore, since the thread is blocked.

      Attachments

        Issue Links

          Activity

            People

              rehn Robbin Ehn
              rehn Robbin Ehn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: