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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 18
    • core-libs
    • None
    • b27

        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.

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

                Created:
                Updated:
                Resolved: