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

Issue 1330673002: Oilpan: Fix a cycle caused by SVGPropertyTearOffBase::m_contextElement (Closed)

Created:
5 years, 3 months ago by haraken
Modified:
5 years, 3 months ago
Reviewers:
oilpan-reviews, sof
CC:
blink-reviews, shans, rjwright, blink-reviews-animation_chromium.org, rwlbuis, fs, kouhei+svg_chromium.org, krit, f(malita), darktears, gyuyoung2, Stephen Chennney, pdr+svgwatchlist_chromium.org, Eric Willigers
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Fix a cycle caused by SVGPropertyTearOffBase::m_contextElement For the reason described in the bug, using a Member for SVGPropertyTearOffBase::m_contextElement causes a cycle. To break the cycle, this CL changes it to a raw pointer. The raw pointer is safe because the context element is guaranteed to be kept alive by a V8 wrapper of the SVG tear off object. BUG=528275 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201796

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -19 lines) Patch
M Source/core/svg/properties/SVGAnimatedProperty.h View 1 chunk +3 lines, -16 lines 0 comments Download
M Source/core/svg/properties/SVGPropertyTearOff.h View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
haraken
PTAL
5 years, 3 months ago (2015-09-04 12:45:21 UTC) #2
sof
thanks for quick turnaround, lgtm.
5 years, 3 months ago (2015-09-04 12:56:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1330673002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1330673002/1
5 years, 3 months ago (2015-09-04 12:58:22 UTC) #5
haraken
We still have the following m_contextElements. core/html/parser/HTMLTreeBuilder.h: RefPtrWillBeMember<HTMLStackItem> m_contextElementStackItem; core/svg/SVGPathSeg.h: RawPtrWillBeMember<SVGElement> m_contextElement; core/svg/SVGPathSegList.h: RawPtrWillBeMember<SVGPathElement> m_contextElement; ...
5 years, 3 months ago (2015-09-04 12:58:44 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=201796
5 years, 3 months ago (2015-09-04 13:42:21 UTC) #7
sof
On 2015/09/04 12:58:44, haraken wrote: > We still have the following m_contextElements. > > core/html/parser/HTMLTreeBuilder.h: ...
5 years, 3 months ago (2015-09-08 09:52:24 UTC) #8
haraken
On 2015/09/08 09:52:24, sof wrote: > On 2015/09/04 12:58:44, haraken wrote: > > We still ...
5 years, 3 months ago (2015-09-08 11:41:00 UTC) #9
sof
5 years, 3 months ago (2015-09-08 12:50:29 UTC) #10
Message was sent while issue was closed.
On 2015/09/08 11:41:00, haraken wrote:
> On 2015/09/08 09:52:24, sof wrote:
> > On 2015/09/04 12:58:44, haraken wrote:
> > > We still have the following m_contextElements.
> > > 
> > > core/html/parser/HTMLTreeBuilder.h:       
RefPtrWillBeMember<HTMLStackItem>
> > > m_contextElementStackItem;
> > > core/svg/SVGPathSeg.h:    RawPtrWillBeMember<SVGElement> m_contextElement;
> > > core/svg/SVGPathSegList.h:    RawPtrWillBeMember<SVGPathElement>
> > > m_contextElement;
> > > core/svg/SVGViewSpec.h:    RawPtrWillBeMember<SVGSVGElement>
> m_contextElement;
> > > core/svg/SVGAnimatedTypeAnimator.h:    RawPtrWillBeMember<SVGElement>
> > > m_contextElement;
> > > 
> > > I guess those would be no problem but am checking.
> > 
> > animations/svg-attribute-interpolation/svg-d-interpolation.html is running
> into
> > a leak, but I can't see how/where it enters.
> > 
> >  (
> >
>
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%...
> > )
> 
> Thanks, let me take a look tomorrow.

https://codereview.chromium.org/1328223002/ takes care of it for me, weakening
some more back/up references for SVGPathSegLists. But, hmm, this is a bit
unsatisfactory.

Powered by Google App Engine
This is Rietveld 408576698