Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2304

ThreadLocal in Rhino context is not always cleared

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.3.1
    • - Flowscript
    • None
    • Patch available

    Description

      The Mozilla Rhino Context isn't exited in all cases in FOM_JavascriptInterpreter. This can lead to a leak on application undeployment, with the ThreadLocal references inside.

      Patch restructures the code slightly to use try { } finally { } blocks to ensure the Context.exit() is called where appropriate (this makes the patch look bigger than it really is, due to indenting).

      Attachments

        1. flowscript.diff
          16 kB
          Graham Triggs

        Activity

          People

            Unassigned Unassigned
            grahamtriggs Graham Triggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: