[Webkit-unassigned] [Bug 258022] REGRESSION(264515 at main): [GStreamer] m_player WeakPtr is accessed from non-main threads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 14 20:12:05 PDT 2023


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

Jean-Yves Avenard [:jya] <jean-yves.avenard at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jean-yves.avenard at apple.com

--- Comment #2 from Jean-Yves Avenard [:jya] <jean-yves.avenard at apple.com> ---
When the GC thread runs, the main thread is suspended. So it's not unsafe here.

The issue at hand, is that WeakPtr::get() allows for it to be called on the GC threads [1], but not the operator->() [2]
[1] https://searchfox.org/wubkat/rev/49a9b51cd3f2e1941aa86570e9948012b4c1cbfa/Source/WTF/wtf/WeakPtr.h#123-128
[2] https://searchfox.org/wubkat/rev/49a9b51cd3f2e1941aa86570e9948012b4c1cbfa/Source/WTF/wtf/WeakPtr.h#137-141

-- 
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/20230615/b85e0480/attachment-0001.htm>


More information about the webkit-unassigned mailing list