WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149762
Allow WKRetainPtrs to be used as keys in hashing data structures
https://bugs.webkit.org/show_bug.cgi?id=149762
Summary
Allow WKRetainPtrs to be used as keys in hashing data structures
Myles C. Maxfield
Reported
2015-10-02 14:30:04 PDT
Allow WKRetainPtrs to be used as keys in hashing data structures
Attachments
Patch
(10.13 KB, patch)
2015-10-02 14:44 PDT
,
Myles C. Maxfield
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2015-10-02 14:42:56 PDT
***
Bug 149763
has been marked as a duplicate of this bug. ***
Myles C. Maxfield
Comment 2
2015-10-02 14:44:59 PDT
Created
attachment 262353
[details]
Patch
Myles C. Maxfield
Comment 3
2015-10-02 14:45:18 PDT
***
Bug 149763
has been marked as a duplicate of this bug. ***
Anders Carlsson
Comment 4
2015-10-05 10:19:20 PDT
Comment on
attachment 262353
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=262353&action=review
> Tools/TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp:40 > + WKRetainPtr<WKContextRef> context1 = adoptWK(WKContextCreate()); > + WKRetainPtr<WKContextRef> context2 = adoptWK(WKContextCreate()); > + WKRetainPtr<WKContextRef> context3 = adoptWK(WKContextCreate()); > + WKRetainPtr<WKContextRef> context4 = adoptWK(WKContextCreate());
I'd use WKStringRef here instead of WKContextRef, for two reasons: 1. WKContextRefs are expensive to make. 2. Using WKStringRefs with two identical strings will test that it's pointer equality and not value equality that's used when putting WKRetainPtrs in hash maps.
Myles C. Maxfield
Comment 5
2015-10-05 13:32:12 PDT
Committed
r190572
: <
http://trac.webkit.org/changeset/190572
>
Darin Adler
Comment 6
2015-10-06 09:20:02 PDT
Comment on
attachment 262353
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=262353&action=review
> Tools/TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp:2 > + * Copyright (C) 2011 Apple Inc. All rights reserved.
Surely the year is 2015.
Myles C. Maxfield
Comment 7
2015-10-06 13:27:27 PDT
(In reply to
comment #6
)
> Comment on
attachment 262353
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=262353&action=review
> > > Tools/TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp:2 > > + * Copyright (C) 2011 Apple Inc. All rights reserved. > > Surely the year is 2015.
Committed
r190639
: <
http://trac.webkit.org/changeset/190639
>
WebKit Commit Bot
Comment 8
2015-10-07 14:29:24 PDT
Re-opened since this is blocked by
bug 149897
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug