Closed
Bug 1290587
Opened 8 years ago
Closed 8 years ago
Clean up XPCNativeSetKey hashing a little bit
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla51
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(6 files)
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mrbkap
:
review+
|
Details |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
This is just to make further more substantial changes easier.
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/68166/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68166/
Attachment #8776393 -
Flags: review?(mrbkap)
Attachment #8776394 -
Flags: review?(mrbkap)
Attachment #8776395 -
Flags: review?(mrbkap)
Attachment #8776396 -
Flags: review?(mrbkap)
Attachment #8776397 -
Flags: review?(mrbkap)
Attachment #8776398 -
Flags: review?(mrbkap)
Assignee | ||
Comment 3•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/68168/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68168/
Assignee | ||
Comment 4•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/68170/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68170/
Assignee | ||
Comment 5•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/68172/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68172/
Assignee | ||
Comment 6•8 years ago
|
||
Also, use NS_PTR_TO_UINT32 instead of NS_PTR_TO_INT32 because it is not undefined. Get rid of the optimization of 0 ^ x which required a comment. Review commit: https://reviewboard.mozilla.org/r/68174/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68174/
Assignee | ||
Comment 7•8 years ago
|
||
Also convert some NS_PRECONDITION in NativeSetMap. Review commit: https://reviewboard.mozilla.org/r/68176/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68176/
Assignee | ||
Comment 8•8 years ago
|
||
There's a bunch of patches here but there's nothing too complex going on. try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d84c376c45ad
Updated•8 years ago
|
Attachment #8776397 -
Flags: review?(mrbkap) → review+
Comment 9•8 years ago
|
||
Comment on attachment 8776397 [details] Bug 1290587, part 5 - Add helper function to hash pointers in HashNativeKey. https://reviewboard.mozilla.org/r/68174/#review65438
Comment 10•8 years ago
|
||
Comment on attachment 8776393 [details] Bug 1290587, part 1 - Fix style for XPCNativeSetKey. https://reviewboard.mozilla.org/r/68166/#review65440
Attachment #8776393 -
Flags: review?(mrbkap) → review+
Comment 11•8 years ago
|
||
Comment on attachment 8776394 [details] Bug 1290587, part 2 - Make XPCNativeSetKey hashing a method. https://reviewboard.mozilla.org/r/68168/#review65444
Attachment #8776394 -
Flags: review?(mrbkap) → review+
Updated•8 years ago
|
Attachment #8776395 -
Flags: review?(mrbkap) → review+
Comment 12•8 years ago
|
||
Comment on attachment 8776395 [details] Bug 1290587, part 3 - Inline accessors in XPCNativeSetKey::Hash(). https://reviewboard.mozilla.org/r/68170/#review65446
Comment 13•8 years ago
|
||
Comment on attachment 8776396 [details] Bug 1290587, part 4 - Lower case Current in XPCNativeSetKey::Hash(). https://reviewboard.mozilla.org/r/68172/#review65448
Attachment #8776396 -
Flags: review?(mrbkap) → review+
Comment 14•8 years ago
|
||
Comment on attachment 8776398 [details] Bug 1290587, part 6 - Remove unused method NativeSetMap::Add. https://reviewboard.mozilla.org/r/68176/#review65436
Attachment #8776398 -
Flags: review?(mrbkap) → review+
Comment 15•8 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #6) > Also, use NS_PTR_TO_UINT32 instead of NS_PTR_TO_INT32 because it is not > undefined.' As a commit message this is pretty unclear. I'm actually not entirely sure what you mean by it. The change itself is correct, though.
Assignee | ||
Comment 16•8 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) from comment #15) > As a commit message this is pretty unclear. I'm actually not entirely sure > what you mean by it. The change itself is correct, though. Oh sorry. I just picked that up from bug 1047176. I think MSVC does or did complain about casting from a signed integer to an unsigned integer (PLDHashNumber is unsigned). I'm not sure if that is defined behavior or not.
Comment 17•8 years ago
|
||
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/59d623592228 part 1 - Fix style for XPCNativeSetKey. r=mrbkap https://hg.mozilla.org/integration/autoland/rev/bcf7690fc657 part 2 - Make XPCNativeSetKey hashing a method. r=mrbkap https://hg.mozilla.org/integration/autoland/rev/81072f3a058a part 3 - Inline accessors in XPCNativeSetKey::Hash(). r=mrbkap https://hg.mozilla.org/integration/autoland/rev/2376df9ef2b7 part 4 - Lower case Current in XPCNativeSetKey::Hash(). r=mrbkap https://hg.mozilla.org/integration/autoland/rev/4dff23362d43 part 5 - Add helper function to hash pointers in HashNativeKey. r=mrbkap https://hg.mozilla.org/integration/autoland/rev/4c2020735c69 part 6 - Remove unused method NativeSetMap::Add. r=mrbkap
Comment 18•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/59d623592228 https://hg.mozilla.org/mozilla-central/rev/bcf7690fc657 https://hg.mozilla.org/mozilla-central/rev/81072f3a058a https://hg.mozilla.org/mozilla-central/rev/2376df9ef2b7 https://hg.mozilla.org/mozilla-central/rev/4dff23362d43 https://hg.mozilla.org/mozilla-central/rev/4c2020735c69
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•