You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2017/11/30 12:36:00 UTC

[jira] [Resolved] (DAFFODIL-1867) Memory leak in Register

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

Steve Lawrence resolved DAFFODIL-1867.
--------------------------------------
    Resolution: Fixed

Fixed in 64da806eec363707db051b69263bf3308523f25f

> Memory leak in Register
> -----------------------
>
>                 Key: DAFFODIL-1867
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1867
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 2.0.0
>            Reporter: Steve Lawrence
>            Assignee: Steve Lawrence
>            Priority: Critical
>             Fix For: 2.1.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The charsReadUntilDelim field inside the Registers class is a StringBuilder. It is allocated once, and appended to frequently, but it is never reset or used. Since it is never reset and continually appended to, it will effectively leak memory since Registers are never freed.
> We either need to reset this field like other StringBuilders or just remove it entirely.



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