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

Issue 1471123002: Don't leak the WatcherThreadManager background thread. (Closed)

Created:
5 years ago by jam
Modified:
5 years ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't leak the WatcherThreadManager background thread. Leaking it triggered some canary/dev build checks on Windows that ensure we don't leak handles. In this case, the leak is ok, but the simplest thing for now is to stop leaking it. A side-benefit is we ensure that Mojo message loops shut down correctly at process shutdown. BUG=559238 R=sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/a6342a90e9cac7236600ccf63d6ab586d3debfc4

Patch Set 1 #

Patch Set 2 : also posix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -19 lines) Patch
M base/threading/thread.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M mojo/edk/system/raw_channel.h View 1 4 chunks +8 lines, -3 lines 0 comments Download
M mojo/edk/system/raw_channel.cc View 1 3 chunks +10 lines, -2 lines 0 comments Download
M mojo/message_pump/handle_watcher.cc View 1 chunk +1 line, -7 lines 0 comments Download
M mojo/message_pump/message_pump_mojo.cc View 1 3 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
jam
5 years ago (2015-11-23 23:26:36 UTC) #5
sky
LGTM
5 years ago (2015-11-24 00:22:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471123002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471123002/60001
5 years ago (2015-11-24 01:27:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133331)
5 years ago (2015-11-24 03:59:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471123002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471123002/60001
5 years ago (2015-11-24 04:20:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133500)
5 years ago (2015-11-24 05:59:13 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/a6342a90e9cac7236600ccf63d6ab586d3debfc4 Cr-Commit-Position: refs/heads/master@{#361264}
5 years ago (2015-11-24 06:34:33 UTC) #15
jam
5 years ago (2015-11-24 06:35:02 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:60001) manually as
a6342a90e9cac7236600ccf63d6ab586d3debfc4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698