-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Scripting JavaScript 2.0.18
-
Component/s: Scripting
-
Labels:None
The implementation of the JavaScript scripting engine, based on Rhino, can lead to classloader leaks due to Rhino's ClassCache if the used classloader for loading objects is a DynamicClassLoader. The cache is used by default to cache object translation from JavaScript to Java and generally outlives the objects it stores, holding a hard reference to them.
Disabling the cache is not a solution as synthetic tests proved that the execution of JavaScript code had increased two times.
- relates to
-
SLING-4787 Change the DynamicClassLoader used by the Sightly scripting engine
-
- Closed
-