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

ASF subversion and git services commented on TS-4208:
-----------------------------------------------------

Commit de5265986b51bf614493f4ddecd21fe53878785a in trafficserver's branch 
refs/heads/master from [~psudaemon]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=de52659 ]

TS-4208: Cast to appropriate sized types to avoid overflow


> The TOTAL from freelist memory debug dump is wrong
> --------------------------------------------------
>
>                 Key: TS-4208
>                 URL: https://issues.apache.org/jira/browse/TS-4208
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Leif Hedstrom
>            Assignee: Phil Sorber
>             Fix For: 6.2.0
>
>
> e.g.
> {code}
> ... (bunch of memory used here, hundreds of gig)
>               65536 |               1024 |        512 | 
> memory/FetchSMAllocator
>            12058624 |            6886400 |       1024 | memory/ArenaBlock
>          8457352192 |         8185164912 |            | TOTAL
> {code}
> I think this is a type casting issue (we don't seem to cast to uint64_t when 
> necessary).
> Also, while looking at this, [~psudaemon] realized that some existing 
> variables, that are being updated are never used. We likely should just nuke 
> these:
> {code}
> inkcoreapi extern volatile int64_t fastalloc_mem_in_use;
> inkcoreapi extern volatile int64_t fastalloc_mem_total;
> inkcoreapi extern volatile int64_t freelist_allocated_mem;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to