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

Simplify code in RuntimeHelper::lookupGlobalVariable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      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).

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

              Created:
              Updated:
              Resolved: