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

Liveness check for global scope is not as fast as it could be

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b27

      Backports

        Description

        Global scope extends shared scope. Some code calls `checkValidStateSlow` which in turns calls isAlive() on the scope. Since global scope does not override this method, it will try to do a volatile VarHandle get to check the scope state - but this is useless since the global scope is always alive.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mcimadamore Maurizio Cimadamore
                Reporter:
                mcimadamore Maurizio Cimadamore
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: