[jboss-jira] [JBoss JIRA] (WFLY-4187) Cloning org.jboss.invocation.InterceptorContext leaks memory

Eduardo Martins (JIRA) issues at jboss.org
Mon May 25 05:02:19 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eduardo Martins resolved WFLY-4187.
-----------------------------------
    Fix Version/s: 9.0.0.CR1
       Resolution: Done


> Cloning org.jboss.invocation.InterceptorContext leaks memory
> ------------------------------------------------------------
>
>                 Key: WFLY-4187
>                 URL: https://issues.jboss.org/browse/WFLY-4187
>             Project: WildFly
>          Issue Type: Bug
>    Affects Versions: 8.1.0.Final, 8.2.0.Final
>            Reporter: Jeroen Wielandt
>            Assignee: Eduardo Martins
>             Fix For: 9.0.0.CR1
>
>
> The clone function uses sublist  to set the new list of interceptors. 
> public InterceptorContext clone() {
>      ....
>         clone.setInterceptors(interceptors.subList(next, interceptors.size()));
>         return clone;
>     }
> This will keep a reference to the original list around. So the original list will never be released. Chaining clone multiple times will eventually cause an out of memory because each sublist grows slightly.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list