Bug 173526

Summary: Fix Ref to deref before assignment, add tests for this to RefPtr, Ref, Function
Product: WebKit Reporter: Darin Adler <darin>
Component: Web Template FrameworkAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch sam: review+

Description Darin Adler 2017-06-18 13:28:04 PDT
Fix Ref to deref before assignment, add tests for this to RefPtr, Ref, Function
Comment 1 Darin Adler 2017-06-18 13:33:57 PDT
Created attachment 313243 [details]
Patch
Comment 2 Darin Adler 2017-06-18 13:34:41 PDT
Chris, I’ll merge this WTF::Function test with the reentrancy test you made, once you land your patch.
Comment 3 Darin Adler 2017-06-18 13:39:07 PDT
Created attachment 313244 [details]
Patch
Comment 4 Sam Weinig 2017-06-18 15:20:52 PDT
Comment on attachment 313244 [details]
Patch

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

> Source/WTF/ChangeLog:8
> +        * wtf/Ref.h: Changed operator= to not be inlined. Added swap functions.

I think you mean inline in the definition.  It is still inlined.
Comment 5 Darin Adler 2017-06-19 10:01:18 PDT
Committed r218496: <http://trac.webkit.org/changeset/218496>