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

Unnecessary invalidation of global constants in Context.setGlobal

XMLWordPrintable

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

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

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

              Created:
              Updated: