<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/7986">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;">I'm concerned that not having global symbol providers loaded first will negatively impact OPTIONAL_API consumer modules.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If a consumer of OPTIONAL_API functions is loaded before the module that exports the OPTIONAL_API symbols then will the consumer module only use the stub functions?</p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/7986/1/main/loader.c">File main/loader.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7986/1/main/loader.c@1691">Patch Set #1, Line 1691:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">        for (i = 0; !AST_LIST_EMPTY(&load_retries) && i < LOAD_RETRIES; i++) {<br>         AST_LIST_TRAVERSE_SAFE_BEGIN(&load_retries, order, entry) {<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">We should change these loops to retry until there are no modules left in load_retries or no modules loaded in a loop.  If no modules loaded in a loop then do a final loop to not suppress load messages.</p><p style="white-space: pre-wrap; word-wrap: break-word;">This fixed number of retries will fail if we have a chain of symbol dependent modules longer than the retry count and the modules are listed in the wrong order.</p><p style="white-space: pre-wrap; word-wrap: break-word;">load_retries list with modules depending on the next module in the list:<br>A -> B -> C -> D -> E -> F</p><p style="white-space: pre-wrap; word-wrap: break-word;">F loads, then E loads on the next time around because F is now loaded...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/7986">change 7986</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/7986"/><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: I33e3174d67f3b4552d3d536326dcaf0ebabb097d </div>
<div style="display:none"> Gerrit-Change-Number: 7986 </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: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 17 Jan 2018 20:06:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>