<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 1:</p><p style="white-space: pre-wrap; word-wrap: break-word;">In theory this can be backported just without switching the astobj2.h macro's from "" to NULL.  This would be a slight change of behavior where ao2_t_ref(obj, -1, NULL) would no longer suppress ao2 logging.  I'm indifferent to backporting or not.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think this behavior change would cause issues in earlier branches.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I didn't give a -1 as the other comments are just nits.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12912">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12912/1/include/asterisk/astobj2.h">File include/asterisk/astobj2.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12912/1/include/asterisk/astobj2.h@365">Patch Set #1, Line 365:</a> <code style="font-family:monospace,monospace">      AO2_ALLOC_OPT_LOCK_MUTEX = 0x00,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The previous shift format was showing bit fields.  I'd prefer for that to still be the case.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2.c">File main/astobj2.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2.c@93">Patch Set #1, Line 93:</a> <code style="font-family:monospace,monospace">        uint32_t magic:28;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sigh.  And another bit stolen from the magic number field.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2_hash.c">File main/astobj2_hash.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2_hash.c@213">Patch Set #1, Line 213:</a> <code style="font-family:monospace,monospace">   node = ao2_alloc_options(sizeof(*node), hash_ao2_node_destructor, AO2_ALLOC_OPT_LOCK_NOLOCK | AO2_ALLOC_OPT_NO_REF_DEBUG);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Need to break the long line.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2_rbtree.c">File main/astobj2_rbtree.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12912/1/main/astobj2_rbtree.c@908">Patch Set #1, Line 908:</a> <code style="font-family:monospace,monospace">   node = ao2_alloc_options(sizeof(*node), rb_ao2_node_destructor, AO2_ALLOC_OPT_LOCK_NOLOCK | AO2_ALLOC_OPT_NO_REF_DEBUG);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12912">change 12912</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/12912"/><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-Change-Id: I3c17d867d901d53f9fcd512bef4d52e342637b54 </div>
<div style="display:none"> Gerrit-Change-Number: 12912 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 23 Sep 2019 17:09:13 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>