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

Issue 1884573002: Fix race condition when dump providers invoked within destroyed state (Closed)

Created:
4 years, 8 months ago by kraynov
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, bashi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix race condition when dump providers invoked within destroyed state InvokeOnMemoryDump() should never be called when tracing is disabled because dump providers can get unexpected destroyed session state. This case also fortified with test case. BUG=600570 Committed: https://crrev.com/063a22a7ad94d98b2d29bf3745dedea10313889f Cr-Commit-Position: refs/heads/master@{#387281}

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -15 lines) Patch
M base/trace_event/memory_dump_manager.cc View 1 2 2 chunks +10 lines, -12 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 chunks +24 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
kraynov
Hi!
4 years, 8 months ago (2016-04-12 14:41:03 UTC) #2
Primiano Tucci (use gerrit)
Thanks. Some comments, but I think you spot the right issue :) https://codereview.chromium.org/1884573002/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc ...
4 years, 8 months ago (2016-04-13 17:08:41 UTC) #3
kraynov
Okay, will address the comments https://codereview.chromium.org/1884573002/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1884573002/diff/1/base/trace_event/memory_dump_manager.cc#newcode417 base/trace_event/memory_dump_manager.cc:417: if (!pmd_async_state->dump_thread_task_runner.get()) { On ...
4 years, 8 months ago (2016-04-13 17:17:41 UTC) #4
kraynov
Take a look
4 years, 8 months ago (2016-04-13 19:03:11 UTC) #5
Primiano Tucci (use gerrit)
LGTM with comments addressed. P.S. I just realized that we want to remove the session_state() ...
4 years, 8 months ago (2016-04-13 20:19:16 UTC) #6
bashi
Thanks for the fix! https://codereview.chromium.org/1884573002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1884573002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode431 base/trace_event/memory_dump_manager.cc:431: task_runner = pmd_async_state->dump_thread_task_runner.get(); DCHECK(task_runner) ?
4 years, 8 months ago (2016-04-13 23:39:01 UTC) #8
kraynov
Updated
4 years, 8 months ago (2016-04-14 09:56:44 UTC) #9
Primiano Tucci (use gerrit)
wonderfulz, LGTM. Ship it!
4 years, 8 months ago (2016-04-14 10:17:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1884573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1884573002/40001
4 years, 8 months ago (2016-04-14 10:18:04 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-14 11:17:28 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 11:19:20 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/063a22a7ad94d98b2d29bf3745dedea10313889f
Cr-Commit-Position: refs/heads/master@{#387281}

Powered by Google App Engine
This is Rietveld 408576698