Bug 211705

Summary: Add copy constructor and assignment operator to Ref<>
Product: WebKit Reporter: Darin Adler <darin>
Component: Web Template FrameworkAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, dbates, esprehn+autocc, ews-watchlist, ggaren, kangil.han, kling, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch sam: review+

Description Darin Adler 2020-05-10 16:36:42 PDT
Add copy constructor and assignment operator to Ref<>
Comment 1 Darin Adler 2020-05-10 16:42:46 PDT
Created attachment 398986 [details]
Patch
Comment 2 Darin Adler 2020-05-10 16:46:11 PDT
Comment on attachment 398986 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=398986&action=review

> Source/WTF/ChangeLog:19
> +        These follow a similar patter to the move constructor and assignment operator.

probably should spell it "pattern".
Comment 3 Chris Dumez 2020-05-10 22:32:10 PDT
I am glad Ref will finally have this.
Comment 4 Darin Adler 2020-05-10 23:15:01 PDT
Committed r261467: <https://trac.webkit.org/changeset/261467>
Comment 5 Radar WebKit Bug Importer 2020-05-10 23:15:18 PDT
<rdar://problem/63077127>
Comment 6 Andreas Kling 2020-06-11 04:24:24 PDT
Great change! :)

In retrospect, efforts to avoid refcount churn are probably best limited to situations where it has a measurable impact on performance, and should not be a goal in itself.
Comment 7 Darin Adler 2020-06-12 13:34:44 PDT
Thank you, sir. Great to get a vote of confidence from the "founder of the [Ref class template] feast".