You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Klco (JIRA)" <ji...@apache.org> on 2018/10/17 15:24:00 UTC

[jira] [Resolved] (SLING-7586) [Sling Models] Memory Leak in cached adapters

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

Dan Klco resolved SLING-7586.
-----------------------------
    Resolution: Fixed
      Assignee: Dan Klco

Fixed in [https://github.com/apache/sling-org-apache-sling-models-impl/pull/9/commits/5b472557cc6e6057e781a4bf0e65ddfe3d3e8430], thanks [~paul.bjorkstrand]!

> [Sling Models] Memory Leak in cached adapters
> ---------------------------------------------
>
>                 Key: SLING-7586
>                 URL: https://issues.apache.org/jira/browse/SLING-7586
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.4.0, Sling Models Impl 1.4.2, Sling Models Impl 1.4.4, Sling Models Impl 1.4.6, Sling Models Impl 1.4.8
>            Reporter: Justin Edelson
>            Assignee: Dan Klco
>            Priority: Major
>             Fix For: Sling Models Impl 1.4.10
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> There is a potential memory leak in the adapterCache in ModelAdapterFactory when the model class references the adaptable. The solution is to wrap the model object in a WeakReference. That ensures that the model can be GC'd and then the key can be GC'd.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)