[webkit-dev] Set once pointer types and static analysis
Ryosuke Niwa
rniwa at apple.com
Mon Oct 28 15:02:20 PDT 2024
> On Oct 28, 2024, at 2:57 PM, Darin Adler <darin at apple.com> wrote:
>
> Why isn’t the destructor a problem? Seems like we still need to protect the object if the SetOnceRefPtr itself might be destroyed.
We’d rely on transitive property. Since our rule / convention is that the caller of a member function keeps “this” object alive, the destructor of SetOnceRefPtr wouldn’t run while the member function is being called.
- R. Niwa
More information about the webkit-dev
mailing list