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

Issue 2517193003: Fix adding duplicate trials to allocator (finally) (Closed)

Created:
4 years, 1 month ago by lawrencewu
Modified:
4 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix adding duplicate trials to allocator (finally) It looks like the reason we were crashing from shared memory was because simulated field trials were getting added to the allocator when they shouldn't be. This CL now checks |trial_registered_| before adding the the trial to the allocator. Also includes a unittest for this behavior. BUG=666230 Committed: https://crrev.com/46df0efa72f7bb53ae173831d06bc9127ce34091 Cr-Commit-Position: refs/heads/master@{#434046}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : address nit #

Total comments: 1

Patch Set 4 : fix unittest memory leak #

Patch Set 5 : git rebase-update #

Patch Set 6 : git rebase-update #

Patch Set 7 : git rebase-update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 1 chunk +37 lines, -1 line 0 comments Download

Messages

Total messages: 63 (34 generated)
lawrencewu
initial CL
4 years, 1 month ago (2016-11-21 18:23:40 UTC) #4
Alexei Svitkine (slow)
lgtm % comments Assuming test crashes without the fix. https://codereview.chromium.org/2517193003/diff/1/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://codereview.chromium.org/2517193003/diff/1/base/metrics/field_trial_unittest.cc#newcode1190 base/metrics/field_trial_unittest.cc:1190: ...
4 years, 1 month ago (2016-11-21 18:28:45 UTC) #5
lawrencewu
"Assuming test crashes without the fix." Verified that it does crash without this fix. On ...
4 years, 1 month ago (2016-11-21 19:11:14 UTC) #6
lawrencewu
Address comments. https://codereview.chromium.org/2517193003/diff/1/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://codereview.chromium.org/2517193003/diff/1/base/metrics/field_trial_unittest.cc#newcode1190 base/metrics/field_trial_unittest.cc:1190: shm.get()->Map(64 << 10); // Hardcoded, equal to ...
4 years, 1 month ago (2016-11-21 19:11:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/20001
4 years, 1 month ago (2016-11-21 19:12:42 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/2517193003/diff/20001/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://codereview.chromium.org/2517193003/diff/20001/base/metrics/field_trial_unittest.cc#newcode1191 base/metrics/field_trial_unittest.cc:1191: 4 << 10); // This is enough to hold ...
4 years, 1 month ago (2016-11-21 19:13:58 UTC) #11
lawrencewu
Fix nit https://codereview.chromium.org/2517193003/diff/20001/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://codereview.chromium.org/2517193003/diff/20001/base/metrics/field_trial_unittest.cc#newcode1191 base/metrics/field_trial_unittest.cc:1191: 4 << 10); // This is enough ...
4 years, 1 month ago (2016-11-21 19:18:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/40001
4 years, 1 month ago (2016-11-21 19:19:36 UTC) #16
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2517193003/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2517193003/diff/40001/base/metrics/field_trial.cc#newcode41 base/metrics/field_trial.cc:41: const bool kUseSharedMemoryForFieldTrials = false; This probably conflict ...
4 years, 1 month ago (2016-11-21 19:20:10 UTC) #17
lawrencewu
I don't think so -- the other CL turned it off, and this keeps it ...
4 years, 1 month ago (2016-11-21 19:31:19 UTC) #18
Alexei Svitkine (slow)
On 2016/11/21 19:31:19, lawrencewu wrote: > I don't think so -- the other CL turned ...
4 years, 1 month ago (2016-11-21 19:45:04 UTC) #19
Alexei Svitkine (slow)
On 2016/11/21 19:45:04, Alexei Svitkine (slow) wrote: > On 2016/11/21 19:31:19, lawrencewu wrote: > > ...
4 years, 1 month ago (2016-11-21 19:46:31 UTC) #21
Alexei Svitkine (slow)
4 years, 1 month ago (2016-11-21 19:46:34 UTC) #22
lawrencewu
Oh, I see what you mean now. Will fix. On 2016/11/21 19:45:04, Alexei Svitkine (slow) ...
4 years, 1 month ago (2016-11-21 19:46:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/40001
4 years, 1 month ago (2016-11-21 19:47:45 UTC) #25
lawrencewu
Okay yeah, I thought I had rebased recently. Never mind then! On 2016/11/21 19:46:31, Alexei ...
4 years, 1 month ago (2016-11-21 19:48:01 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/185023)
4 years, 1 month ago (2016-11-21 20:14:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/40001
4 years, 1 month ago (2016-11-21 20:17:09 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/266475)
4 years, 1 month ago (2016-11-21 22:44:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/80001
4 years, 1 month ago (2016-11-22 15:51:29 UTC) #43
commit-bot: I haz the power
Failed to apply patch for base/metrics/field_trial.h: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-22 17:46:18 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/100001
4 years, 1 month ago (2016-11-22 18:19:42 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/169086)
4 years, 1 month ago (2016-11-22 19:00:27 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/100001
4 years, 1 month ago (2016-11-22 19:02:32 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/169143)
4 years, 1 month ago (2016-11-22 19:24:57 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517193003/120001
4 years, 1 month ago (2016-11-22 22:12:32 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-23 00:55:04 UTC) #60
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/46df0efa72f7bb53ae173831d06bc9127ce34091 Cr-Commit-Position: refs/heads/master@{#434046}
4 years ago (2016-11-23 00:58:50 UTC) #62
lawrencewu
4 years ago (2016-11-23 14:15:22 UTC) #63
Message was sent while issue was closed.
On 2016/11/23 00:58:50, commit-bot: I haz the power wrote:
> Patchset 7 (id:??) landed as
> https://crrev.com/46df0efa72f7bb53ae173831d06bc9127ce34091
> Cr-Commit-Position: refs/heads/master@{#434046}

Well that took a really long time to land.

Powered by Google App Engine
This is Rietveld 408576698