You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2017/12/12 15:43:02 UTC

[jira] [Closed] (SLING-7292) Only add model object to disposal registry if it is not empty

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

Justin Edelson closed SLING-7292.
---------------------------------

> Only add model object to disposal registry if it is not empty
> -------------------------------------------------------------
>
>                 Key: SLING-7292
>                 URL: https://issues.apache.org/jira/browse/SLING-7292
>             Project: Sling
>          Issue Type: Improvement
>            Reporter: Justin Edelson
>            Assignee: Justin Edelson
>             Fix For: Sling Models Impl 1.4.6
>
>
> Currently, a reference to a created model object is added to the {{ReferenceQueue}} for reference disposal regardless of whether or not the model object actually has created any references to clean up. This creates unnecessary work when those objects are garbage collected. We should only do this when necessary, i.e. disposal callbacks have been registered for that model object.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)