[
https://issues.apache.org/jira/browse/TS-4211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148110#comment-15148110
]
ASF GitHub Bot commented on TS-4211:
------------------------------------
Github user bgaff commented on a diff in the pull request:
https://github.com/apache/trafficserver/pull/481#discussion_r52969591
--- Diff: lib/ts/ink_queue.cc ---
@@ -200,19 +200,20 @@ freelist_new(InkFreeList *f)
if (TO_PTR(FREELIST_POINTER(item)) == NULL) {
uint32_t i;
void *newp = NULL;
- size_t alloc_size = 0;
+ size_t alloc_size = f->chunk_size * f->type_size;
+ size_t alignment;
--- End diff --
= 0.
> Allocate only what we need for debugging
> ----------------------------------------
>
> Key: TS-4211
> URL: https://issues.apache.org/jira/browse/TS-4211
> Project: Traffic Server
> Issue Type: Improvement
> Reporter: Phil Sorber
> Assignee: Phil Sorber
>
> In freelists we align to page size before making the allocation call even
> though we do that inside the call too. This limits our debugging ability
> because it makes it look like we always want exactly page size when we might
> be using less. We should only ask for what we need to provide cleaner
> debugging.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)