Bug 229171

Summary: Add a thread safe version of WeakPtr
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 229168    
Bug Blocks:    

Description Ryosuke Niwa 2021-08-16 17:06:52 PDT
We need a thread safe version of WeakPtr.

It's not sufficient to make CanMakeThreadSafe thread safe for WeakPtr
since the object can be destructed as we grab the value out of WeakPtr.

Add a mechanism to safely create RefPtr or CheckedPtr out of them.
Comment 1 Yusuke Suzuki 2021-08-16 17:16:24 PDT
Strongly +1!
Comment 2 Radar WebKit Bug Importer 2021-08-23 17:07:23 PDT
<rdar://problem/82268516>