Justin Edelson created SLING-7292:
-------------------------------------
Summary: 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)