[Fontconfig-bugs] [Bug 101889] Make fontconfig cache relocatable

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 19 07:56:14 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101889

--- Comment #83 from Alexander Larsson <alexl at redhat.com> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20171219/4a82caf5/attachment.html>


More information about the Fontconfig-bugs mailing list