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

Issue 335633002: Oilpan: Fix leaks through RenderStyle objects. (Closed)

Created:
6 years, 6 months ago by Mads Ager (chromium)
Modified:
6 years, 6 months ago
CC:
blink-reviews, Nate Chapin, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Oilpan: Fix leaks through RenderStyle objects. RenderStyle objects are not on the heap and they keep the CSSFontSelector and its associated ResourceFetcher alive. We turned raw pointers to the document in CSSFontSelector and ResourceFetcher into traced Members. That will leak until we can also trace through the RenderStyle structure. See crbug.com/383860 for details. This fixed the leaks by using WeakMembers to the document in these two places. We really should trace through all of this but that is going to be a larger change and we should fix this leak now. R=haraken@chromium.org, oilpan-reviews@chromium.org, sigbjornf@opera.com BUG=383860 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176034

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M Source/core/css/CSSFontSelector.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Mads Ager (chromium)
6 years, 6 months ago (2014-06-12 13:56:04 UTC) #1
sof
lgtm. This also puts a dent in http://code.google.com/p/chromium/issues/detail?id=382880 ?
6 years, 6 months ago (2014-06-12 14:02:06 UTC) #2
Mads Ager (chromium)
Yes, I just double checked that that leak is also gone with this patch. It ...
6 years, 6 months ago (2014-06-12 14:05:37 UTC) #3
zerny-chromium
lgtm2
6 years, 6 months ago (2014-06-12 14:07:13 UTC) #4
haraken
LGTM https://codereview.chromium.org/335633002/diff/1/Source/core/css/CSSFontSelector.h File Source/core/css/CSSFontSelector.h (right): https://codereview.chromium.org/335633002/diff/1/Source/core/css/CSSFontSelector.h#newcode89 Source/core/css/CSSFontSelector.h:89: // FIXME: Oilpan: Ideally this should just be ...
6 years, 6 months ago (2014-06-12 14:09:38 UTC) #5
sof
On 2014/06/12 14:05:37, Mads Ager (chromium) wrote: > Yes, I just double checked that that ...
6 years, 6 months ago (2014-06-12 14:12:02 UTC) #6
Mads Ager (chromium)
Thanks! https://codereview.chromium.org/335633002/diff/1/Source/core/css/CSSFontSelector.h File Source/core/css/CSSFontSelector.h (right): https://codereview.chromium.org/335633002/diff/1/Source/core/css/CSSFontSelector.h#newcode89 Source/core/css/CSSFontSelector.h:89: // FIXME: Oilpan: Ideally this should just be ...
6 years, 6 months ago (2014-06-12 14:13:02 UTC) #7
haraken
Just help me understand: Is it safe to change RawPtrWillBeMember to RawPtrWillBeWeakMember (to avoid leak) ...
6 years, 6 months ago (2014-06-12 14:14:06 UTC) #8
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 6 months ago (2014-06-12 14:25:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/335633002/20001
6 years, 6 months ago (2014-06-12 14:27:15 UTC) #10
Mads Ager (chromium)
On 2014/06/12 14:14:06, haraken wrote: > Just help me understand: Is it safe to change ...
6 years, 6 months ago (2014-06-12 14:31:48 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 16:02:56 UTC) #12
Message was sent while issue was closed.
Change committed as 176034

Powered by Google App Engine
This is Rietveld 408576698