Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Issue 1449173002: Change the cast in base::Location::Hash to uintptr_t. (Closed)

Created:
5 years, 1 month ago by Anand Mistry (off Chromium)
Modified:
5 years ago
Reviewers:
danakj
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@location-hash-size-t
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the cast in base::Location::Hash to uintptr_t. This allows the appropriate HashPair function to be called depending on whether this is a 32 or 64-bit system. On a 32-bit platform, using HashInts64 on 32-bit values doesn't buy us any additional entropy (*hand-wavey*) compared to using HashInts32. It is more expensive, generating an extra 4 64-bit multiplies, each results in a function call (to _allmul) on Windows-32. Committed: https://crrev.com/37d5552647f58f20069c485cf4203fe05839921b Cr-Commit-Position: refs/heads/master@{#362819}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M base/location.h View 1 chunk +1 line, -5 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 13 (5 generated)
Anand Mistry (off Chromium)
Split from https://codereview.chromium.org/1445013002/
5 years, 1 month ago (2015-11-16 22:48:30 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1449173002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1449173002/1
5 years ago (2015-12-02 09:31:14 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-02 12:08:33 UTC) #6
Anand Mistry (off Chromium)
danakj: WDYT?
5 years ago (2015-12-02 20:02:26 UTC) #7
danakj
https://codereview.chromium.org/1449173002/diff/1/base/location.h File base/location.h (left): https://codereview.chromium.org/1449173002/diff/1/base/location.h#oldcode63 base/location.h:63: // file name pointer to a uintptr_t causes a ...
5 years ago (2015-12-02 20:49:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1449173002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1449173002/1
5 years ago (2015-12-02 23:15:31 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-02 23:31:07 UTC) #11
commit-bot: I haz the power
5 years ago (2015-12-02 23:32:01 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/37d5552647f58f20069c485cf4203fe05839921b
Cr-Commit-Position: refs/heads/master@{#362819}

Powered by Google App Engine
This is Rietveld 408576698