The following comment has been added to this issue:

     Author: peter royal
    Created: Fri, 24 Sep 2004 7:40 AM
       Body:
option #3 (WeakRef) would mean no changes to JellyContext then, right? I'm all for no 
explicit API changes, but requiring people to keep explicit references to a Script 
when they want to re-use parts of it later.

(the blissed project, http://blissed.codehaus.org does something like that.. you have 
a Jelly script that builds a model, and pieces of the model may included subsets of 
the script to be executed later. Currently the initial Script is thrown away after 
evaluation but with the WeakRef change, we'd just need to keep a handle to it and all 
would be well)
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JELLY-148?page=comments#action_53389

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JELLY-148

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-148
    Summary: Huge memory leak resulting from the use of ThreadLocal
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: jelly
 Components: 
             core / taglib.core
   Versions:
             1.0-beta-5

   Assignee: 
   Reporter: Hans Gilde

    Created: Sat, 18 Sep 2004 9:34 PM
    Updated: Fri, 24 Sep 2004 7:40 AM

Description:
There is a huge memory leak that results from the TagScript's use of ThreadLocal.

ThreadLocal is usually used from a staic variable, while TagScript uses it from an 
instance variable. Although this looks legal to me, it causes a huge memory leak.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to