[jira] Created: (MUSE-296) Memory leak in AbstractCapability.java prevents resources from being garbage collected

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (MUSE-296) Memory leak in AbstractCapability.java prevents resources from being garbage collected

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-296) Memory leak in AbstractCapability.java prevents resources from being garbage collected

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/MUSE-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eitan Plotnik updated MUSE-296:
-------------------------------

    Attachment: diff.txt

> 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
>         Attachments: diff.txt
>
>
> 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@...
For additional commands, e-mail: muse-dev-help@...