Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b28b7aca993535511058d22d563e75dc50b3911
      
https://github.com/WebKit/WebKit/commit/9b28b7aca993535511058d22d563e75dc50b3911
  Author: Yusuke Suzuki <[email protected]>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M Source/JavaScriptCore/heap/MachineStackMarker.h
    M Source/WTF/wtf/ThreadGroup.cpp
    M Source/WTF/wtf/ThreadGroup.h
    M Source/WTF/wtf/Threading.cpp
    M Source/WTF/wtf/Threading.h
    M Source/WTF/wtf/linux/RealTimeThreads.h
    M Source/WTF/wtf/threads/Signals.cpp
    M Tools/TestWebKitAPI/Tests/WTF/ThreadGroup.cpp

  Log Message:
  -----------
  Use ThreadSafeWeakPtr in ThreadGroup
https://bugs.webkit.org/show_bug.cgi?id=248103
rdar://102528206

Reviewed by Darin Adler and Chris Dumez.

We were using std::shared_ptr and std::weak_ptr in ThreadGroup, and the reason 
of this is because of lack of thread-safety
with WeakPtr / Ref. But now, we have ThreadSafeWeakPtr, so let's use it instead.

* Source/JavaScriptCore/heap/MachineStackMarker.h:
* Source/WTF/wtf/ThreadGroup.h:
* Source/WTF/wtf/Threading.cpp:
(WTF::Thread::didExit):
(WTF::Thread::addToThreadGroup):
* Source/WTF/wtf/Threading.h:
* Source/WTF/wtf/linux/RealTimeThreads.h:
* Source/WTF/wtf/threads/Signals.cpp:
(WTF::activeThreads):
* Tools/TestWebKitAPI/Tests/WTF/ThreadGroup.cpp:
(TestWebKitAPI::testThreadGroup):
(TestWebKitAPI::TEST):

Canonical link: https://commits.webkit.org/257595@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to