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

Issue 2836933002: memory-infra: Never kill memory-infra background thread (Closed)

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

Description

memory-infra: Never kill memory-infra background thread We want ultimately to move to a model where memory-infra does not have its own custom thread and instead uses base::scheduler. However this is risky at the moment given the tracing entanglement and the various other refactorings going on. For now we change the logic to never kill the background thread. This will simplify the logic of the MemoryDumpManager significantly and pave the way for us to disentangle tracing. BUG=705564 BUG=702289 Review-Url: https://codereview.chromium.org/2836933002 Cr-Commit-Position: refs/heads/master@{#467671} Committed: https://chromium.googlesource.com/chromium/src/+/7af20094a387dfa6a3f0eb5fb5b15066bdf90f19

Patch Set 1 #

Total comments: 10

Patch Set 2 : updated for comments #

Patch Set 3 : memory_tracing_enabled -> is_enabled_ #

Patch Set 4 : rebase #

Patch Set 5 : sacrifice to the dark gods of TSAN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -40 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 5 chunks +7 lines, -3 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 15 chunks +37 lines, -37 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
hjd
Second step to disentangling tracing from MDM. ptal, thanks! :)
3 years, 8 months ago (2017-04-24 14:28:56 UTC) #2
Primiano Tucci (use gerrit)
LGTM with minor comments, but wait for a confirmation from ssid. I'd reword a bit ...
3 years, 8 months ago (2017-04-24 15:30:58 UTC) #5
hjd
Thanks! Also updated comment. https://codereview.chromium.org/2836933002/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (left): https://codereview.chromium.org/2836933002/diff/1/base/trace_event/memory_dump_manager.cc#oldcode899 base/trace_event/memory_dump_manager.cc:899: dump_thread->Stop(); On 2017/04/24 15:30:58, Primiano ...
3 years, 8 months ago (2017-04-24 16:27:59 UTC) #8
ssid
In description: BUG=705564, 702289 This looks good, maybe we could remove more stuff too. https://codereview.chromium.org/2836933002/diff/1/base/trace_event/memory_dump_manager.cc ...
3 years, 8 months ago (2017-04-25 03:21:48 UTC) #13
hjd
On 2017/04/25 03:21:48, ssid wrote: > In description: > BUG=705564, 702289 > > This looks ...
3 years, 8 months ago (2017-04-25 11:24:20 UTC) #14
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/2836933002/60001
3 years, 8 months ago (2017-04-26 15:14:16 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/61538)
3 years, 8 months ago (2017-04-26 16:11:44 UTC) #19
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/2836933002/80001
3 years, 7 months ago (2017-04-27 14:34:16 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 14:40:37 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7af20094a387dfa6a3f0eb5fb5b1...

Powered by Google App Engine
This is Rietveld 408576698