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

Make DynamicLinker specific to a Context in Nashorn

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • None
    • b93
    • generic
    • generic

    Description

      Currently, DynamicLinker is a static singleton in Nashorn. It should be specific to a Context instead.

      A DynamicLinker instance can incorporate exported linkers from other language runtimes, discovered through ServiceLoader mechanism on a class loader. Context has such a class loader, its appLoader. Therefore, DynamicLinker should be local to a Context and constructed through a factory that uses the Context's appLoader for discovery of exported linkers.

      This will allow Nashorn to coöperate with other language runtimes present in the appLoader's classpath

      Attachments

        Issue Links

          Activity

            People

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: