[Asterisk-code-review] taskprocessor: Do not use separate allocation for stats. (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Mon Nov 12 06:57:48 CST 2018
Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/10621 )
Change subject: taskprocessor: Do not use separate allocation for stats.
......................................................................
Patch Set 1: Code-Review-1
(2 comments)
https://gerrit.asterisk.org/#/c/10621/1/main/taskprocessor.c
File main/taskprocessor.c:
https://gerrit.asterisk.org/#/c/10621/1/main/taskprocessor.c@520
PS1, Line 520: maxqsize = tps->stats.max_qsize;
Was it ever possible in the first place to not have tps->stats?
https://gerrit.asterisk.org/#/c/10621/1/main/taskprocessor.c@752
PS1, Line 752: p->name = ast_strdup(name);
As you're in the area why not roll this into the ao2_alloc and eliminate this memory allocation?
--
To view, visit https://gerrit.asterisk.org/10621
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I74fe9a7f357f0e6d63152f163cf5eef6428218e1
Gerrit-Change-Number: 10621
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Comment-Date: Mon, 12 Nov 2018 12:57:48 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181112/0fc680d8/attachment-0001.html>
More information about the asterisk-code-review
mailing list