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

Issue 1616713003: Oilpan: LinkLoaderClient must be a GC mixin. (Closed)

Created:
4 years, 11 months ago by sof
Modified:
4 years, 11 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, Yoav Weiss, gavinp+prerender_chromium.org, blink-reviews-html_chromium.org, tyoshino+watch_chromium.org, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Oilpan: LinkLoaderClient must be a GC mixin. LinkLoader notifies its 'client' of load completion and other lifecycle transitions. The assumption is that the client's lifetime is >= that of the loader object, hence a bare pointer is all required. This assumption doesn't hold when both LinkLoader and the client is on the Oilpan heap, nor when LinkLoader is on the heap and the client is stack allocated (cf. mock client object in LinkLoader unit tests). Address the unsoundness by making LinkLoaderClient a GC mixin. TBR=haraken@chromium.org BUG= Committed: https://crrev.com/6e6d363a6cf3afc0d4c791fb5689877540c1b222 Cr-Commit-Position: refs/heads/master@{#370654}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -11 lines) Patch
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderClient.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 5 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616713003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616713003/1
4 years, 11 months ago (2016-01-21 08:03:42 UTC) #2
sof
please take a look. WebKit unit tests are now failing, https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%20Leak/builds/16495. Not a regression per ...
4 years, 11 months ago (2016-01-21 08:09:06 UTC) #4
sof
I think it would be worthwhile to review all the *Client interfaces, to verify that ...
4 years, 11 months ago (2016-01-21 08:27:56 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 09:17:13 UTC) #7
sof
TBRing against haraken@ so as to unbreak the unit tests.
4 years, 11 months ago (2016-01-21 09:32:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616713003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616713003/1
4 years, 11 months ago (2016-01-21 09:33:38 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-21 09:38:18 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/6e6d363a6cf3afc0d4c791fb5689877540c1b222 Cr-Commit-Position: refs/heads/master@{#370654}
4 years, 11 months ago (2016-01-21 09:39:20 UTC) #15
haraken
4 years, 11 months ago (2016-01-21 09:58:33 UTC) #16
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698