[Webkit-unassigned] [Bug 195656] Add a thread safety assertion for RefCounted
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 13 10:41:05 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=195656
--- Comment #4 from Geoffrey Garen <ggaren at apple.com> ---
We used to have assertions like this and we had to remove them. The corner case was JavaScriptCore. JavaScriptCore allows clients to run on any thread, and it ensures thread safety through coarse-grained locking. JavaScriptCore also uses many fundamental WTF types. We could not find a practical way to annotate all types as asserting their thread affinity if and only if not used by JavaScriptCore.
But perhaps the opposite is possible: WebCore could annotate certain important objects upon allocation as being tied to a thread.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190313/9f165177/attachment.html>
More information about the webkit-unassigned
mailing list