Uploaded image for project: 'XWork'
  1. XWork
  2. XW-560

ThreadLocal problem in ContainerImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5, 2.1.2
    • None
    • None
    • Patch

    Description

      The com.opensymphony.xwork2.inject.ContainerImpl class uses a ThreadLocal that contains an InternalContext array. Because of this, the InternalContext class (and everything it references transitively) cannot be garbage collected. A very similar issue is described in further detail here: http://www.szegedi.org/articles/memleak.html

      I'm submitting a patch which simply changes the type of the array from InternalContext to Object. This appears to fix the issue.

      Attachments

        Activity

          People

            rainerh Rainer Hermanns
            adamcrume Adam Crume
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: