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

Issue 2762643002: Remove ANNOTATE_BENIGN_RACE from trace_event_synthetic_delay.cc

Created:
3 years, 9 months ago by Alexander Potapenko
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ANNOTATE_BENIGN_RACE from trace_event_synthetic_delay.cc There seem to be no data races behind these annotations, upon removing them the trybots remain green, and it's unclear from the code whether a race is possible. BUG=chromium:702558 R=skyostil@chromium.org

Patch Set 1 #

Patch Set 2 : removed the comments as well #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -10 lines) Patch
M base/trace_event/trace_event_synthetic_delay.cc View 1 3 chunks +0 lines, -10 lines 1 comment Download

Messages

Total messages: 6 (3 generated)
Sami
https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_event_synthetic_delay.cc File base/trace_event/trace_event_synthetic_delay.cc (left): https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_event_synthetic_delay.cc#oldcode84 base/trace_event/trace_event_synthetic_delay.cc:84: ANNOTATE_BENIGN_RACE(&target_duration_, "Synthetic delay duration"); There is actually a race ...
3 years, 9 months ago (2017-03-21 11:52:55 UTC) #4
Alexander Potapenko
On 2017/03/21 11:52:55, Sami wrote: > https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_event_synthetic_delay.cc > File base/trace_event/trace_event_synthetic_delay.cc (left): > > https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_event_synthetic_delay.cc#oldcode84 > ...
3 years, 9 months ago (2017-03-21 12:09:25 UTC) #5
Sami
3 years, 9 months ago (2017-03-21 12:12:27 UTC) #6
On 2017/03/21 12:09:25, Alexander Potapenko wrote:
> On 2017/03/21 11:52:55, Sami wrote:
> >
>
https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_...
> > File base/trace_event/trace_event_synthetic_delay.cc (left):
> > 
> >
>
https://codereview.chromium.org/2762643002/diff/20001/base/trace_event/trace_...
> > base/trace_event/trace_event_synthetic_delay.cc:84:
> > ANNOTATE_BENIGN_RACE(&target_duration_, "Synthetic delay duration");
> > There is actually a race here (SetTargetDuration writes to target_duration_
> and
> > we read it without locking), but we just don't have enough code using
> synthetic
> > delays to trigger it.
> Yeah, it didn't fire during trybot runs, which is a pity((
> Do you know if the race is actually happening in prod?

Not in practice because this API is only used on the perf waterfall.

> > Actually I'm considering deleting the entire synthetic
> > delay subsystem since we haven't really made use of it recently. If you want
> to
> > remove the macros before that that's fine, but please leave a comment here
> > saying there is an actual race.
> I'm fine with keeping it for now if you're going to delete the code anyway.

Works for me. Filed crbug.com/703604 to track the deletion.

Powered by Google App Engine
This is Rietveld 408576698