You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Phil Sorber (JIRA)" <ji...@apache.org> on 2014/04/21 19:05:15 UTC

[jira] [Commented] (TS-2617) !TS_USE_FREELIST code allocates too much memory

    [ https://issues.apache.org/jira/browse/TS-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975721#comment-13975721 ] 

Phil Sorber commented on TS-2617:
---------------------------------

[~wbardwel], do you plan to commit this fix?

> !TS_USE_FREELIST code allocates too much memory
> -----------------------------------------------
>
>                 Key: TS-2617
>                 URL: https://issues.apache.org/jira/browse/TS-2617
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: William Bardwell
>            Assignee: William Bardwell
>             Fix For: 5.0.0
>
>
> The code does:
>  if (f->alignment)
>     newp = ats_memalign(f->alignment, f->chunk_size * f->type_size);
>   else
>     newp = ats_malloc(f->chunk_size * f->type_size);
> But we are not making a freelist, just memory for a single item so it shouldn't be multiplying by f->chunk_size.
> Obviously this is really only for debugging, but it should still allocate the right amount of memory.



--
This message was sent by Atlassian JIRA
(v6.2#6252)