Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 26ebb2b1983fed45ad687a87c8d0863f47f6537d
https://github.com/WebKit/WebKit/commit/26ebb2b1983fed45ad687a87c8d0863f47f6537d
Author: Geoffrey Garen <[email protected]>
Date: 2025-11-15 (Sat, 15 Nov 2025)
Changed paths:
M Source/WTF/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
M Source/WTF/wtf/Threading.cpp
M Source/WTF/wtf/Threading.h
M Source/WTF/wtf/posix/ThreadingPOSIX.cpp
M Source/WTF/wtf/win/ThreadingWin.cpp
M Source/WebCore/page/cocoa/ResourceUsageThreadCocoa.mm
M Source/WebCore/page/linux/ResourceUsageThreadLinux.cpp
M Source/WebCore/platform/audio/RealtimeAudioThread.cpp
M Tools/TestWebKitAPI/Tests/IPC/ConnectionTests.cpp
M Tools/TestWebKitAPI/Tests/WTF/RunLoop.cpp
Log Message:
-----------
[SaferCPP] Eliminate raw pointer hash table for Thread
https://bugs.webkit.org/show_bug.cgi?id=302414
rdar://164575958
Reviewed by Brady Eidson and Chris Dumez.
Adopted ThreadSafeWeakHashSet instead. It's pretty neat!
Now we end up locking less than we used to, and that revealed a race
condition between thread startup and shutdown in workers/bomb.html.
Fixed the race condition by ensuring that all Thread initialization happens
before launching the new thread or while holding the NewThreadContext lock
(either on the caller thread or on the callee thread, depending on build
config).
Canonical link: https://commits.webkit.org/303075@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications