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

Issue 2382443011: Add comment about leaked FileDescriptorWatcher::Controller::Watcher. (Closed)

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

Description

Add comment about leaked FileDescriptorWatcher::Controller::Watcher. If the MessageLoopForIO is deleted before Watcher::StartWatching() runs, |watcher_| is leaked. If the MessageLoopForIO is deleted after Watcher::StartWatching() runs but before the DeleteSoon task runs, |watcher_| is deleted from Watcher::WillDestroyCurrentMessageLoop(). BUG=645114 Committed: https://crrev.com/20e8000df85972c5fd53d287753a189c45b9408c Cr-Commit-Position: refs/heads/master@{#422320}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M base/files/file_descriptor_watcher_posix.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
fdoray
PTAL A leak occurs if WatchReadable/WatchWritable are called just before the MessageLoopForIO associated with the ...
4 years, 2 months ago (2016-09-30 21:15:01 UTC) #2
dcheng
LGTM. Presumably, we don't consider this a problem because this only happens when we're exiting?
4 years, 2 months ago (2016-09-30 22:12:50 UTC) #3
fdoray
On 2016/09/30 22:12:50, dcheng wrote: > LGTM. > > Presumably, we don't consider this a ...
4 years, 2 months ago (2016-10-01 14:49:52 UTC) #4
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/2382443011/1
4 years, 2 months ago (2016-10-01 14:50:07 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-01 15:37:51 UTC) #7
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 15:39:58 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/20e8000df85972c5fd53d287753a189c45b9408c
Cr-Commit-Position: refs/heads/master@{#422320}

Powered by Google App Engine
This is Rietveld 408576698