Title: [294539] trunk/Source/WTF/wtf/win/ThreadingWin.cpp
- Revision
- 294539
- Author
- [email protected]
- Date
- 2022-05-20 02:16:59 -0700 (Fri, 20 May 2022)
Log Message
[Win] Destroy Thread::ClientData only when thread TLS is initialized
https://bugs.webkit.org/show_bug.cgi?id=240707
Reviewed by Mark Lam.
Move destruction under if (thread) check.
* Source/WTF/wtf/win/ThreadingWin.cpp:
(WTF::Thread::ThreadHolder::~ThreadHolder):
Canonical link: https://commits.webkit.org/250793@main
Modified Paths
Diff
Modified: trunk/Source/WTF/wtf/win/ThreadingWin.cpp (294538 => 294539)
--- trunk/Source/WTF/wtf/win/ThreadingWin.cpp 2022-05-20 09:16:13 UTC (rev 294538)
+++ trunk/Source/WTF/wtf/win/ThreadingWin.cpp 2022-05-20 09:16:59 UTC (rev 294539)
@@ -269,8 +269,8 @@
// deadlock.
if (isMainThread())
return;
- thread->m_clientData = nullptr;
if (thread) {
+ thread->m_clientData = nullptr;
thread->specificStorage().destroySlots();
thread->didExit();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes