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

Issue 2421743003: Fix race in TraceLog::AddEventWithTimestamp (Closed)

Created:
4 years, 2 months ago by ssid
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, Jeffrey Yasskin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix race in TraceLog::AddEventWithTimestamp The enabled_modes_ cannot be accessed without lock. This CL changes it to check if the current category is enabled to initialize thread local. Tsan build fail: https://build.chromium.org/p/chromium.memory.full/builders/Linux%20TSan%20Tests/ BUG=625170 TBR=primiano@chromium.org Committed: https://crrev.com/7d0a5a15a80334107d48b415ce246bc1e6e4b147 Cr-Commit-Position: refs/heads/master@{#425500}

Patch Set 1 : Remove extra changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/trace_event/trace_log.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (14 generated)
ssid
ptal thanks.
4 years, 2 months ago (2016-10-14 21:41:24 UTC) #2
oystein (OOO til 10th of July)
lgtm
4 years, 2 months ago (2016-10-14 21:59:19 UTC) #10
ssid
@primiano, please see this change this since you had some concern about the local buffer ...
4 years, 2 months ago (2016-10-14 22:02:09 UTC) #12
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/2421743003/20001
4 years, 2 months ago (2016-10-14 22:51:27 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 2 months ago (2016-10-14 22:57:52 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 22:59:48 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7d0a5a15a80334107d48b415ce246bc1e6e4b147
Cr-Commit-Position: refs/heads/master@{#425500}

Powered by Google App Engine
This is Rietveld 408576698