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

Issue 923443004: Oilpan: avoid access to to-be-swept ImageLoader object. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: avoid access to to-be-swept ImageLoader object. If the ImageLoader update microtask holds onto an ImageLoader object that's slated to be swept out, do not invoke its update method. Doing so might in turn risk accessing some of its already swept&finalized references. Also tidy up WeakFactory field ordering for ImageLoader::Task. R=haraken,kouhei BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190140

Patch Set 1 #

Total comments: 11

Patch Set 2 : Added explanatory comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M Source/core/loader/ImageLoader.cpp View 1 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
sof
Please take a look.
5 years, 10 months ago (2015-02-12 17:24:37 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode83 Source/core/loader/ImageLoader.cpp:83: , m_updateBehavior(updateBehavior) unintended change? https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode93 Source/core/loader/ImageLoader.cpp:93: return; Is this ...
5 years, 10 months ago (2015-02-13 00:25:58 UTC) #4
haraken
https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode99 Source/core/loader/ImageLoader.cpp:99: void clearLoader() Another possible fix would be to call ...
5 years, 10 months ago (2015-02-13 01:38:53 UTC) #6
haraken
https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode93 Source/core/loader/ImageLoader.cpp:93: return; On 2015/02/13 00:25:58, kouhei wrote: > Is this ...
5 years, 10 months ago (2015-02-13 01:41:59 UTC) #7
sof
https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode83 Source/core/loader/ImageLoader.cpp:83: , m_updateBehavior(updateBehavior) On 2015/02/13 00:25:58, kouhei wrote: > unintended ...
5 years, 10 months ago (2015-02-13 06:40:48 UTC) #8
kouhei (in TOK)
I'm ok with both approaches (PS1 or haraken's). Delegating to haraken@ https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): ...
5 years, 10 months ago (2015-02-13 09:00:34 UTC) #9
haraken
LGTM https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode99 Source/core/loader/ImageLoader.cpp:99: void clearLoader() On 2015/02/13 06:40:48, sof wrote: > ...
5 years, 10 months ago (2015-02-13 09:20:20 UTC) #10
sof
https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp File Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp#newcode99 Source/core/loader/ImageLoader.cpp:99: void clearLoader() On 2015/02/13 09:20:20, haraken wrote: > On ...
5 years, 10 months ago (2015-02-13 09:38:46 UTC) #11
sof
On 2015/02/13 09:20:20, haraken wrote: > LGTM > > https://codereview.chromium.org/923443004/diff/1/Source/core/loader/ImageLoader.cpp > File Source/core/loader/ImageLoader.cpp (right): > ...
5 years, 10 months ago (2015-02-13 11:24:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923443004/20001
5 years, 10 months ago (2015-02-13 11:25:33 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 12:41:45 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190140

Powered by Google App Engine
This is Rietveld 408576698