<p><a href="https://gerrit.osmocom.org/13392">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.osmocom.org/#/c/13392/4//COMMIT_MSG">Commit Message:</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.osmocom.org/#/c/13392/4//COMMIT_MSG@33">Patch Set #4, Line 33:</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;">Note: at least osmo-msc's msc_vlr_tests' expected output needs to be adjusted<br>after merging this, because of logging changes for FSM deallocations<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">this is *very* bad.  Is there any way we can avoid this?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13392/4//COMMIT_MSG@36">Patch Set #4, Line 36:</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;">This patch's mechanism is not thread safe. It might be made thread safe<br>if the new global variable osmo_fsm_inst_terminating_root were handled<br>per-thread instead of once globally.<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">please mark the related global variables as __thread right away. It doesn't cost us anything, AFAIK.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13392/4/include/osmocom/core/fsm.h">File include/osmocom/core/fsm.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.osmocom.org/#/c/13392/4/include/osmocom/core/fsm.h@118">Patch Set #4, Line 118:</a> <code style="font-family:monospace,monospace">bool terminating;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">as this breaks ABI, please add TODO-RELEASE entry.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13392/4/src/fsm.c">File src/fsm.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.osmocom.org/#/c/13392/4/src/fsm.c@397">Patch Set #4, Line 397:</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;">static int osmo_fsm_inst_terminating = 0;<br>static struct osmo_fsm_inst *osmo_fsm_inst_terminating_root = NULL;<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">mark as __thread, possibly even put both in a struct and then have a "static __thread struct" for tidyness?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13392">change 13392</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/13392"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I8eda67540a1cd444491beb7856b9fcd0a3143b18 </div>
<div style="display:none"> Gerrit-Change-Number: 13392 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 27 Mar 2019 07:36:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>