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

Issue 1348613006: [tracing] Fix races in TraceLog's EnabledStateObserver (Closed)

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

Description

[tracing] Fix races in TraceLog's EnabledStateObserver This CL makes TraceLog Add/RemoveEnabledStateObserver thread safe as observers can be registered on different threads. Furthermore this CL fixes another race in ChildMemoryDumpManagerDelegateImpl, ensuring that the check to post the memory dump request on the right thread is itself thread-safe. BUG=530578 Committed: https://crrev.com/74188c63d45324feb6a3abbc36fff1affd322801 Cr-Commit-Position: refs/heads/master@{#349176}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -15 lines) Patch
M base/trace_event/trace_log.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/tracing/child_memory_dump_manager_delegate_impl.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/tracing/child_memory_dump_manager_delegate_impl.cc View 2 chunks +35 lines, -15 lines 3 comments Download

Messages

Total messages: 10 (2 generated)
Primiano Tucci (use gerrit)
5 years, 3 months ago (2015-09-16 16:58:43 UTC) #2
dsinclair
https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc File components/tracing/child_memory_dump_manager_delegate_impl.cc (right): https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc#newcode50 components/tracing/child_memory_dump_manager_delegate_impl.cc:50: base::trace_event::MemoryDumpManager::GetInstance()->Initialize( Why does the initialize call move from the ...
5 years, 3 months ago (2015-09-16 17:14:55 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc File components/tracing/child_memory_dump_manager_delegate_impl.cc (right): https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc#newcode50 components/tracing/child_memory_dump_manager_delegate_impl.cc:50: base::trace_event::MemoryDumpManager::GetInstance()->Initialize( On 2015/09/16 17:14:55, dsinclair wrote: > Why does ...
5 years, 3 months ago (2015-09-16 17:46:20 UTC) #4
dsinclair
lgtm https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc File components/tracing/child_memory_dump_manager_delegate_impl.cc (right): https://codereview.chromium.org/1348613006/diff/1/components/tracing/child_memory_dump_manager_delegate_impl.cc#newcode50 components/tracing/child_memory_dump_manager_delegate_impl.cc:50: base::trace_event::MemoryDumpManager::GetInstance()->Initialize( On 2015/09/16 17:46:20, Primiano Tucci wrote: > ...
5 years, 3 months ago (2015-09-16 17:53:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1348613006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1348613006/1
5 years, 3 months ago (2015-09-16 18:06:30 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-09-16 18:59:14 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/74188c63d45324feb6a3abbc36fff1affd322801 Cr-Commit-Position: refs/heads/master@{#349176}
5 years, 3 months ago (2015-09-16 19:00:06 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:58:41 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/74188c63d45324feb6a3abbc36fff1affd322801
Cr-Commit-Position: refs/heads/master@{#349176}

Powered by Google App Engine
This is Rietveld 408576698