Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59587

Groovy sandbox class loading cache cleared out by garbage collection

XMLWordPrintable

    • script-security 1.66

      A fix for memory leaks in script-security released in version 1.60 (PR 253) inadvertently caused the inner caches in SandboxResolvingClassLoader.parentClassCache (which contain the actual cached classes) to always be weakly referenced, allowing them to always be cleared out by the garbage collector, since the inner caches are never strongly referenced anywhere else. In cases where the garbage collector is running frequently, this significantly reduces the effectiveness of the cache, and can contribute to performance problems in code that uses SandboxResolvingClassLoader, such as Pipeline.

            dnusbaum Devin Nusbaum
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: