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

Remove suspend_flag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 15
    • hotspot

      Removing _suspend_flag and has_special_runtime_exit_condition/handle_special_runtime_exit_condition and friends will greatly simplify transition and will make it possible to contain the functionality.
      Right now it's spread out all over the runtime and we have many special transition for not getting this wrong.
      Delivery conditions are duplicate and very hard to understand.

      The _suspend_flag is asynchronous and target executed:
      Set bit X and thread execute method Y when doing a transition where the delivery terms are met.

      Since we already have a safepoint(/handshake) poll at every possible delivery location, these can be implementerad as handshake (if we had the correct functionality).
      The handshake operation could contain both the delivery terms and the delivery, thus having everything at one place and only once.

      There are now 4 (soon 5) users:
        - Suspend/resume
        - Delivering Asynchronous exception (ThreadDeath)
        - Lazy JNI critical unlocking
        - JFR Native trace blocking
        - Local variable reconstitution

            pchilanomate Patricio Chilano Mateo
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: