<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Make fontconfig cache relocatable"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101889#c83">Comment # 83</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Make fontconfig cache relocatable"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101889">bug 101889</a>
from <span class="vcard"><a class="email" href="mailto:alexl@redhat.com" title="Alexander Larsson <alexl@redhat.com>"> <span class="fn">Alexander Larsson</span></a>
</span></b>
<pre>Actually, this patch is not threadsafe. You can't switch out the middle of a
linked list with a single atomic compare and swap, because some other thread
might be adding another item after that node in parallel, modifying b->next
inbetween the bucket->next = b->next; and the cmpexch.
I think for this to be safe the replace codepath has to cmpexch on b->value
directly.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>