Bug 148229

Summary: dispatch_group_t objects may not be retained properly when not backed by Objective-C objects under garbage collection
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: MediaAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, andersca, bfulgham, commit-queue, eric.carlson, jeremyj-wk, jer.noble
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch v2 none

David Kilzer (:ddkilzer)
Reported 2015-08-20 10:06:25 PDT
dispatch_group_t objects may not be retained properly when not backed by Objective-C objects under garbage collection. The proper way to address this is to use OSObjectPtr<>, which does the right thing regardless of whether the dispatch_group_t objects are backed by Objective-C objects or not.
Attachments
Patch (3.54 KB, patch)
2015-08-21 10:35 PDT, David Kilzer (:ddkilzer)
no flags
Patch v2 (3.74 KB, patch)
2015-08-21 10:44 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2015-08-21 10:35:12 PDT
David Kilzer (:ddkilzer)
Comment 2 2015-08-21 10:43:15 PDT
Comment on attachment 259630 [details] Patch I forgot to include the header!
David Kilzer (:ddkilzer)
Comment 3 2015-08-21 10:44:54 PDT
Created attachment 259631 [details] Patch v2
WebKit Commit Bot
Comment 4 2015-08-21 11:37:40 PDT
Comment on attachment 259631 [details] Patch v2 Clearing flags on attachment: 259631 Committed r188761: <http://trac.webkit.org/changeset/188761>
WebKit Commit Bot
Comment 5 2015-08-21 11:37:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.