[Webkit-unassigned] [Bug 199857] [WTF] Thread::removeFromThreadGroup leaks weak pointers.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 9 09:38:53 PDT 2019


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

Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com

--- Comment #13 from Darin Adler <darin at apple.com> ---
Comment on attachment 375899
  --> https://bugs.webkit.org/attachment.cgi?id=375899
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=375899&action=review

> Source/WTF/wtf/Threading.h:296
> +    HashMap<ThreadGroup*, std::weak_ptr<ThreadGroup>> m_threadGroupMap;

Future cleanup thought: Can we make HashSet<std::weak_ptr<ThreadGroup>> work for a case like this, rather than requiring use of a map?

-- 
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/20190809/c88888e8/attachment.html>


More information about the webkit-unassigned mailing list