<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8366">View Change</a></p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p style="white-space: pre-wrap; word-wrap: break-word;">This may be crazy but how much of a performance hit would we take if __ast_calloc et al were always real functions provided by main/astmm.c instead of AST_INLINE_API in utils.h?  Then just have the implementation of main/astmm.c chosen by `#if defined(MALLOC_DEBUG)`.  I know there would be a hit, I'm just not sure it's prohibitive.</p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8366/1/include/asterisk/utils.h">File include/asterisk/utils.h:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8366/1/include/asterisk/utils.h@536">Patch Set #1, Line 536:</a> <code style="font-family:monospace,monospace">#define ast_free free</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Wouldn't this still be a problem if MALLOC_DEBUG is enabled on the core and</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Looking further this is a problem:</p><ul><li>asterisk/uuid.h - multiple functions allocate from the core documented as 'free with ast_free'.</li><li>asterisk/astdb.h - ast_db_get_allocated</li><li>asterisk/cli.h - ast_cli_completion_add</li></ul></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8366">change 8366</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8366"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ic07ad80b2c2df894db984cf27b16a69383ce0e10 </div>
<div style="display:none"> Gerrit-Change-Number: 8366 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 22 Feb 2018 16:30:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>