-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
None
-
b93
-
generic
-
generic
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
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
- blocks
-
JDK-8141550 Introduce a command line option instead of nashorn.unstable.relink.threshold system property
-
- Resolved
-
- relates to
-
JDK-8198540 Dynalink leaks memory when generating type converters
-
- Resolved
-
-
JDK-8229011 Leak (.invoke.LambdaForm, invoke.BoundMethodHandle)
-
- Closed
-