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

Issue 1681663003: Reland Fix leak PaintLayerReflectionInfo (Closed)

Created:
4 years, 10 months ago by Stephen Chennney
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, slimming-paint-reviews_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland Fix leak PaintLayerReflectionInfo NOT FOR COMMIT, YET Originally https://codereview.chromium.org/1657883002/ Patch by wangxianzhu@ Previously PaintLayerReflectionInfo required destroy() to be called before destruction, but we missed the call in PaintLayer::updateReflectionInfo(), causing leak of the reflection layout object and the layer for the reflection. Delete PaintLayerReflectionInfo::destroy(). Use destructor instead. BUG=582717 TEST=PaintLayerTest.ReflectionLeak Committed: https://crrev.com/6137b72d44c0391a39e2a8f9cad9efb4706880e9 Cr-Commit-Position: refs/heads/master@{#374556}

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -6 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/paint/PaintLayerTest.cpp View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
Stephen Chennney
I'm trying out the exact same patch for this issue to see if the issue ...
4 years, 10 months ago (2016-02-08 21:17:25 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681663003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681663003/1
4 years, 10 months ago (2016-02-08 21:19:45 UTC) #4
chrishtr
What is different about the test now vs Xianzhu's original patch?
4 years, 10 months ago (2016-02-08 21:24:40 UTC) #5
Stephen Chennney
On 2016/02/08 21:24:40, chrishtr wrote: > What is different about the test now vs Xianzhu's ...
4 years, 10 months ago (2016-02-08 21:30:13 UTC) #6
chrishtr
lgtm
4 years, 10 months ago (2016-02-08 22:18:52 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 23:08:50 UTC) #10
Stephen Chennney
Try landing this again too see if my failure to reproduce is real. If it ...
4 years, 10 months ago (2016-02-09 21:13:41 UTC) #13
pdr.
@rnk, this looks like it's now passing the win clang bot that caused this to ...
4 years, 10 months ago (2016-02-09 21:15:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681663003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681663003/20001
4 years, 10 months ago (2016-02-09 21:16:30 UTC) #16
Reid Kleckner
On 2016/02/09 21:15:37, pdr wrote: > @rnk, this looks like it's now passing the win ...
4 years, 10 months ago (2016-02-09 21:23:06 UTC) #17
Reid Kleckner
+Hans, this weeks clang sheriff
4 years, 10 months ago (2016-02-09 21:23:43 UTC) #19
hans
On 2016/02/09 21:23:43, Reid Kleckner wrote: > +Hans, this weeks clang sheriff Thanks, I'll keep ...
4 years, 10 months ago (2016-02-09 21:26:39 UTC) #20
Stephen Chennney
On 2016/02/09 21:26:39, hans wrote: > On 2016/02/09 21:23:43, Reid Kleckner wrote: > > +Hans, ...
4 years, 10 months ago (2016-02-09 21:55:28 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-10 00:47:52 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6137b72d44c0391a39e2a8f9cad9efb4706880e9 Cr-Commit-Position: refs/heads/master@{#374556}
4 years, 10 months ago (2016-02-10 00:48:38 UTC) #25
blundell
4 years, 10 months ago (2016-02-10 10:09:32 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1685073002/ by blundell@chromium.org.

The reason for reverting is: I suspect this broke webkit_unit_tests on Mac Asan
(https://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests...).
Will reland if not the culprit.

Failure snippet:

[ RUN      ] All/ParameterizedWebFrameTest.CompositedSelectionBoundsCleared/1
=================================================================
==37555==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000001b50
at pc 0x00010b1599b5 bp 0x7fff5bb669d0 sp 0x7fff5bb669c8
READ of size 8 at 0x610000001b50 thread T0
    #0 0x10b1599b4 in blink::PaintLayerScrollableArea::scrollbarsCanBeActive()
const (in webkit_unit_tests) + 420
    #1 0x105dd885b in blink::ScrollAnimatorMac::updateScrollerStyle() (in
webkit_unit_tests) + 283

.

Powered by Google App Engine
This is Rietveld 408576698