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

Issue 134103006: linux_aura: Fix cursor memeory leak, which was redding the lsan bot. (Closed)

Created:
6 years, 11 months ago by Elliot Glaysher
Modified:
6 years, 11 months ago
Reviewers:
tdanderson, sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, ananta
Visibility:
Public.

Description

linux_aura: Fix cursor memeory leak, which was redding the lsan bot. views::corewm::CursorManager was no longer owned by anything, nor did it register with the base::AtExitManager. This refcounts the number of DNWAs and frees the shared CursorManager when the last one is destroyed. (We can't just use a base::LazyInstance<> since that doesn't have any useful guarantees on destruction ordering; we need to destroy CursorManager before we tear down the X11 connection.) BUG=334333 R=tdanderson TBR=sadrul Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245090

Patch Set 1 #

Total comments: 1

Patch Set 2 : Change to manual ref counting. #

Patch Set 3 : Tear down NCM during OnDesktopWindowTreeHostDestroyed instead of dtor. #

Total comments: 1

Patch Set 4 : +comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 chunks +11 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
Elliot Glaysher
tdanderson: review sadrul: stamp
6 years, 11 months ago (2014-01-14 01:26:47 UTC) #1
tdanderson
On 2014/01/14 01:26:47, Elliot Glaysher wrote: > tdanderson: review > sadrul: stamp I will take ...
6 years, 11 months ago (2014-01-14 03:56:22 UTC) #2
tdanderson
LGTM. Is there a bug/report corresponding to the lsan failures that you can link to ...
6 years, 11 months ago (2014-01-14 17:42:27 UTC) #3
Elliot Glaysher
On 2014/01/14 03:56:22, tdanderson wrote: > On 2014/01/14 01:26:47, Elliot Glaysher wrote: > > tdanderson: ...
6 years, 11 months ago (2014-01-14 18:41:33 UTC) #4
tdanderson
On 2014/01/14 18:41:33, Elliot Glaysher wrote: > On 2014/01/14 03:56:22, tdanderson wrote: > > On ...
6 years, 11 months ago (2014-01-14 20:04:27 UTC) #5
tdanderson
On 2014/01/14 20:04:27, tdanderson wrote: > On 2014/01/14 18:41:33, Elliot Glaysher wrote: > > On ...
6 years, 11 months ago (2014-01-14 22:31:19 UTC) #6
Elliot Glaysher
ptal. changed to manual refcounting.
6 years, 11 months ago (2014-01-15 01:37:51 UTC) #7
tdanderson
Manual ref-counting patch LGTM with one nit. https://codereview.chromium.org/134103006/diff/430001/ui/views/widget/desktop_aura/desktop_native_widget_aura.h File ui/views/widget/desktop_aura/desktop_native_widget_aura.h (right): https://codereview.chromium.org/134103006/diff/430001/ui/views/widget/desktop_aura/desktop_native_widget_aura.h#newcode298 ui/views/widget/desktop_aura/desktop_native_widget_aura.h:298: static int ...
6 years, 11 months ago (2014-01-15 20:40:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/134103006/500001
6 years, 11 months ago (2014-01-15 21:28:54 UTC) #9
sadrul
LGTM https://codereview.chromium.org/134103006/diff/500001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (right): https://codereview.chromium.org/134103006/diff/500001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode312 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:312: } This looks a bit hairy. Perhaps there ...
6 years, 11 months ago (2014-01-15 22:15:01 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 03:18:37 UTC) #11
Message was sent while issue was closed.
Change committed as 245090

Powered by Google App Engine
This is Rietveld 408576698