Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 883a699fc0cf1bdd0a2051ea9914f4ccfd137835
https://github.com/WebKit/WebKit/commit/883a699fc0cf1bdd0a2051ea9914f4ccfd137835
Author: Alex Christensen <[email protected]>
Date: 2023-06-28 (Wed, 28 Jun 2023)
Changed paths:
M Source/WTF/wtf/ThreadSafeWeakPtr.h
Log Message:
-----------
Revert unnecessary part of 265344@main
https://bugs.webkit.org/show_bug.cgi?id=258636
rdar://111409234
Reviewed by Chris Dumez.
265344@main made it so we can make weak references during the destructor safely.
I also tried to do the same thing we do in RefCounted and ThreadSafeRefCounted
and make it so we can safely make strong references, however
m_strongReferenceCount
is also used in weakDeref so it caused the control block to be leaked if there
are weak references when the destructor is called. As a minimum risk fix,
revert that unneeded part of last week's PR.
* Source/WTF/wtf/ThreadSafeWeakPtr.h:
(WTF::ThreadSafeWeakPtrControlBlock::strongDeref const):
Canonical link: https://commits.webkit.org/265598@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes