<p></p>
<p>And also:</p>
<p><code>$ make BOARD=samr21-xpro BUILD_IN_DOCKER=1 -C tests/rmutex</code></p>
<p><code>master</code>:</p>
<pre><code>   text     data     bss     dec     hex filename
  10748     132   10056   20936    51c8 /data/riotbuild/riotbase/tests/rmutex/bin/samr21-xpro/tests_rmutex.elf
</code></pre>
<p>This PR:</p>
<pre><code>   text     data     bss     dec     hex filename
  10792     132   10056   20980    51f4 /data/riotbuild/riotbase/tests/rmutex/bin/samr21-xpro/tests_rmutex.elf
</code></pre>
<p>So this <em>increases</em> ROM consumption for some reason. The reason is that previously relaxed memory order was used, atomic utils always use sequentially consistent memory accesses. I think this is actually fixing a race condition in the code, as otherwise the compiler could load the owner of the rmutex before checking if it is already locked.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16919#issuecomment-931105197">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYF65C6PEAI7KPI7KVLUEQSXVANCNFSM5FBZXXUA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYFMAMQFEHTZUTSIX7DUEQSXVA5CNFSM5FBZXXUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG57YTLI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16919#issuecomment-931105197",
"url": "https://github.com/RIOT-OS/RIOT/pull/16919#issuecomment-931105197",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>