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

Memory leak in code macro

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: