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

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 18
    • 18
    • core-libs
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: