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

Issue 2433933004: Leak DeviceMonitorLinux on shutdown. (Closed)

Created:
4 years, 2 months ago by fdoray
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Leak DeviceMonitorLinux on shutdown. In preparation for the migration of many Chrome threads to TaskScheduler, we want to get rid of MessageLoop destruction observers. This CL removes the code that deletes DeviceMonitorLinux from a destruction observer and uses a LazyInstance::Leaky to manage the lifetime of DeviceMonitorLinux. This CL also helps reducing the amount of work done during shutdown https://groups.google.com/a/chromium.org/d/msg/chromium-dev/AMB2Y7Sqj48/QltA07wUCQAJ BUG=650318 Committed: https://crrev.com/7a9ea7caa267b3779d7984a6834e2d35b723cefb Cr-Commit-Position: refs/heads/master@{#426518}

Patch Set 1 #

Patch Set 2 : fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -9 lines) Patch
M device/base/device_monitor_linux.cc View 3 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
fdoray
PTAL
4 years, 2 months ago (2016-10-20 15:34:27 UTC) #11
Ken Rockot(use gerrit already)
LGTM. So what's the timeline for getting rid of MessageLoop DestructionObserver? We have generic Mojo ...
4 years, 2 months ago (2016-10-20 16:18:03 UTC) #12
fdoray
On 2016/10/20 16:18:03, Ken Rockot wrote: > LGTM. > > So what's the timeline for ...
4 years, 2 months ago (2016-10-20 17:02:41 UTC) #13
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/2433933004/20001
4 years, 2 months ago (2016-10-20 17:03:56 UTC) #15
Ken Rockot(use gerrit already)
On 2016/10/20 at 17:02:41, fdoray wrote: > On 2016/10/20 16:18:03, Ken Rockot wrote: > > ...
4 years, 2 months ago (2016-10-20 17:09:48 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-20 17:22:54 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:19:45 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7a9ea7caa267b3779d7984a6834e2d35b723cefb
Cr-Commit-Position: refs/heads/master@{#426518}

Powered by Google App Engine
This is Rietveld 408576698