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

Issue 1204573005: [tracing] use SHA1 instead of base::Hash for memory dump GUIDs (Closed)

Created:
5 years, 6 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 6 months ago
Reviewers:
picksi, petrcermak
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, erikwright+watch_chromium.org, ssid
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] use SHA1 instead of base::Hash for memory dump GUIDs Turns out that base::Hash is very easy to collide. See crbug.com/503593. Switching to SHA1. BUG=492102 NOTRY=true Committed: https://crrev.com/b9f284548f0660f116d9511f464984e17cf59f8c Cr-Commit-Position: refs/heads/master@{#335676}

Patch Set 1 #

Total comments: 5

Patch Set 2 : zero-copies FTW #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M base/trace_event/memory_allocator_dump_guid.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Primiano Tucci (use gerrit)
5 years, 6 months ago (2015-06-23 13:06:30 UTC) #2
petrcermak
One comment and one nit. Thanks, Petr https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc File base/trace_event/memory_allocator_dump_guid.cc (right): https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc#newcode20 base/trace_event/memory_allocator_dump_guid.cc:20: for (size_t ...
5 years, 6 months ago (2015-06-23 13:13:43 UTC) #3
picksi
https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc File base/trace_event/memory_allocator_dump_guid.cc (right): https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc#newcode23 base/trace_event/memory_allocator_dump_guid.cc:23: } Apart from reversing the bytes, isn't this just ...
5 years, 6 months ago (2015-06-23 13:35:51 UTC) #5
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc File base/trace_event/memory_allocator_dump_guid.cc (right): https://codereview.chromium.org/1204573005/diff/1/base/trace_event/memory_allocator_dump_guid.cc#newcode20 base/trace_event/memory_allocator_dump_guid.cc:20: for (size_t i = 0; i < sizeof(uint64); ++i) ...
5 years, 6 months ago (2015-06-23 13:52:07 UTC) #6
petrcermak
LGTM. Thanks, Petr
5 years, 6 months ago (2015-06-23 13:53:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204573005/20001
5 years, 6 months ago (2015-06-23 13:55:04 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/3995)
5 years, 6 months ago (2015-06-23 14:14:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204573005/20001
5 years, 6 months ago (2015-06-23 14:44:41 UTC) #13
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-23 15:00:02 UTC) #15
Primiano Tucci (use gerrit)
On 2015/06/23 15:00:02, commit-bot: I haz the power wrote: > Exceeded global retry quota I ...
5 years, 6 months ago (2015-06-23 15:09:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204573005/20001
5 years, 6 months ago (2015-06-23 15:12:48 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/4018)
5 years, 6 months ago (2015-06-23 15:23:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204573005/20001
5 years, 6 months ago (2015-06-23 15:59:06 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-23 16:06:41 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-23 16:07:40 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b9f284548f0660f116d9511f464984e17cf59f8c
Cr-Commit-Position: refs/heads/master@{#335676}

Powered by Google App Engine
This is Rietveld 408576698