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

Unnecessary invalidation of global constants in Context.setGlobal

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 9
    • core-libs
    • None

    Description

      Context.setGlobal invokes GlobalConstants.invalidateAll(). This is unnecessary as running code with that Global will still only create linkage in code compiled by Global's creating Context.

      (As a matter of fact, Context.setGlobal is probably misleading as it's not associating a Global with a Context. It's associating a Global with the current thread.)

      Attachments

        Issue Links

          Activity

            People

              sundar Sundararajan Athijegannathan
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: