[prev in list] [next in list] [prev in thread] [next in thread] 

List:       muse-dev
Subject:    [jira] Created: (MUSE-296) Memory leak in AbstractCapability.java
From:       "Eitan Plotnik (JIRA)" <jira () apache ! org>
Date:       2009-01-22 12:03:59
Message-ID: 1032806455.1232625839726.JavaMail.jira () brutus
[Download RAW message or body]

Memory leak in AbstractCapability.java prevents resources from being garbage collected
--------------------------------------------------------------------------------------

                 Key: MUSE-296
                 URL: https://issues.apache.org/jira/browse/MUSE-296
             Project: Muse
          Issue Type: Bug
          Components: Core Engine - Resource and Capability APIs
    Affects Versions: 2.2.0
            Reporter: Eitan Plotnik
            Assignee: Dan Jemiolo


Circular dependency in AbstractCapability.java prevents resources from being garbage collected.

AbstractCapability has a reference to Resource (_resource variable).
SimpleResource holds references back to capabilities from _capabilitiesByURI map.

Solution is to declare the _resource in AbstractCapability to be WeakReference.

Diff file attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic