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

Simplify code in RuntimeHelper::lookupGlobalVariable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      RuntimeHelper::lookupGlobalVariable plays a very defensive game in trying to keep the lookup symbol alive in the segment it returns.

      In reality this is not required: the array of valid library lookups is stored inside a class constant (either a static field, or a loaded condy), so it's never possible for the lookup to be dropped on the floor while the constant holder class is still loaded (and that will be always loaded as long as the binding class will be used by the user).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: