Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9337

Memory leak in code macro

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Jython create a new never cleaned ThreadLocal for each ScriptEngine and we create a new ScriptEngine for each macro execution.

      So there is two issues:

      • very dangerous use of ThreadLocal on Jython side
      • Jython script engine is actually thread safe so creating a new one for each macro is actually useless

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: