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

Share script classes between threads/globals within context

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: