[Webkit-unassigned] [Bug 195605] makeWeakPtr isn't thread-safe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 12 11:40:35 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=195605

--- Comment #8 from Chris Dumez <cdumez at apple.com> ---
(In reply to Alex Christensen from comment #7)
> Should we then make WeakReference RefCounted instead of ThreadSafeRefCounted
> and add assertions that WeakPtrs are made, used, and destroyed on the same
> thread?  Those both sound like improvements to me.  We'll need the move
> constructor to be able to be called from any thread for cases where we hop
> to a different thread then back.

What about the very valid use case I mentioned earlier?

-- 
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/20190312/1b157594/attachment.html>


More information about the webkit-unassigned mailing list