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

Issue 1832773002: Move CompositorPendingAnimations to Oilpan's heap (Closed)

Created:
4 years, 9 months ago by haraken
Modified:
4 years, 9 months ago
Reviewers:
oilpan-reviews, sof
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, darktears, blink-reviews, rwlbuis, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move CompositorPendingAnimations to Oilpan's heap CompositorPendingAnimations::m_timer can be fired in Oilpan's lazy sweeping phase. This is problematic because at that point things accessed in the timer function might have been already destructed. We don't hit this problem if CompositorPendingAnimations is a GarbageCollected object because we have logic to suppress firing timers of unreachable GarbageCollected objects. So this CL moves CompositorPendingAnimations to the heap. BUG=592845 Committed: https://crrev.com/a8f340ef9d09b2692552bbc463572af84e3e1fbb Cr-Commit-Position: refs/heads/master@{#383248}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
haraken
PTAL (It's not nice that a DISALLOW_NEW object causes this problem. It would be great ...
4 years, 9 months ago (2016-03-24 08:46:56 UTC) #2
sof
lgtm https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode1375 third_party/WebKit/Source/core/dom/Document.h:1375: PersistentWillBeMember<CompositorPendingAnimations> m_compositorPendingAnimations; Can we forward declare CompositorPendingAnimations rather ...
4 years, 9 months ago (2016-03-24 15:02:10 UTC) #3
sof
On 2016/03/24 08:46:56, haraken wrote: > PTAL > > (It's not nice that a DISALLOW_NEW ...
4 years, 9 months ago (2016-03-24 15:11:10 UTC) #4
sof
https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode974 third_party/WebKit/Source/core/dom/Document.h:974: CompositorPendingAnimations& compositorPendingAnimations() { return *m_compositorPendingAnimations; } Wait, you need ...
4 years, 9 months ago (2016-03-24 17:36:06 UTC) #5
haraken
On 2016/03/24 17:36:06, sof wrote: > https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h > File third_party/WebKit/Source/core/dom/Document.h (right): > > https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode974 > ...
4 years, 9 months ago (2016-03-25 02:32:13 UTC) #6
haraken
> https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h > File third_party/WebKit/Source/core/dom/Document.h (right): > > https://codereview.chromium.org/1832773002/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode1375 > third_party/WebKit/Source/core/dom/Document.h:1375: > PersistentWillBeMember<CompositorPendingAnimations> > m_compositorPendingAnimations; ...
4 years, 9 months ago (2016-03-25 02:32:55 UTC) #7
haraken
On 2016/03/24 15:11:10, sof wrote: > On 2016/03/24 08:46:56, haraken wrote: > > PTAL > ...
4 years, 9 months ago (2016-03-25 02:34:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832773002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832773002/20001
4 years, 9 months ago (2016-03-25 02:34:23 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-25 04:52:36 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 04:54:11 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a8f340ef9d09b2692552bbc463572af84e3e1fbb
Cr-Commit-Position: refs/heads/master@{#383248}

Powered by Google App Engine
This is Rietveld 408576698