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

Issue 2570473003: NoBarrier_Load()/NoBarrier_Store() for manipulating activated field. (Closed)

Created:
4 years ago by Alexei Svitkine (slow)
Modified:
4 years ago
Reviewers:
bcwhite
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NoBarrier_Load()/NoBarrier_Store() for manipulating activated field. These ops guarantee atomicity of the write/read (i.e. not partial), but do not put constraints around synchronization and ordering. This is mostly academic since the field's value is either 0 or 1, so currently is not susceptible to issues from partial writes of the data. It does not need synchronization or ordering constraints because it's ok for child processes to observe a stale value because it's only used to avoid sending a no-op IPC to browser process if child knows trial is activated. Still, this came up during design review and it doesn't hurt to use these. BUG=673042 Committed: https://crrev.com/8095c757053bd2bc15b5b2570362587ba38c5779 Cr-Commit-Position: refs/heads/master@{#438235}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M base/metrics/field_trial.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M base/metrics/field_trial.cc View 1 5 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Alexei Svitkine (slow)
4 years ago (2016-12-12 18:14:33 UTC) #7
bcwhite
Comment that it's required to prevent the compiler from doing unexpected optimizations because it thinks ...
4 years ago (2016-12-13 13:38:50 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/2570473003/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2570473003/diff/20001/base/metrics/field_trial.cc#newcode1089 base/metrics/field_trial.cc:1089: new_entry->activated = prev_entry->activated; On 2016/12/13 13:38:50, bcwhite wrote: > ...
4 years ago (2016-12-13 15:26:05 UTC) #9
bcwhite
lgtm
4 years ago (2016-12-13 15:50:00 UTC) #10
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/2570473003/40001
4 years ago (2016-12-13 17:15:41 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years ago (2016-12-13 18:38:31 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-13 18:42:29 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8095c757053bd2bc15b5b2570362587ba38c5779
Cr-Commit-Position: refs/heads/master@{#438235}

Powered by Google App Engine
This is Rietveld 408576698