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

Share script classes between threads/globals within context

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • core-libs
    • None
    • b06
    • generic
    • generic

        Currently the cache for compiled script classes is per global, i.e. other threads/globals will have to recompile the script. I think this is because of PropertyMaps in the static constants array of script classes used to have a reference to the prototype object. This isn't the case anymore, but there may still be problems with sharing maps unless they are duplicated for each global.

        We should find out and share the class cache among globals if possible.

              jlaskey Jim Laskey
              hannesw Hannes Wallnoefer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: