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

Issue 1428383002: Make ResourceFetcher::m_documentResources use WeakPtr (Closed)

Created:
5 years, 1 month ago by Nate Chapin
Modified:
5 years ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, Inactive, chromium-reviews, devtools-reviews_chromium.org, gavinp+loader_chromium.org, Nate Chapin, kinuko, kozyatinskiy+blink_chromium.org, loading-reviews+fetch_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, tyoshino+watch_chromium.org, vivekg_samsung, vivekg, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ResourceFetcher::m_documentResources use WeakPtr This removes the need for a special GC process. BUG= Committed: https://crrev.com/bf76e786d1c965ca8cf93e3abbc326f208b7c188 Cr-Commit-Position: refs/heads/master@{#365483}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 7

Patch Set 13 : Add TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -81 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/network/cached-resource-destroyed-moved-to-storage.html View 2 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/from-disk-cache-timing.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/long-script-content.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +8 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLeakDetector.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
Nate Chapin
mkwst: PTAL sigbjorn: Can I get your blessing for the Oilpan-flavored bits in Resource/ResourceFetcher? I'm ...
5 years ago (2015-12-14 23:12:16 UTC) #2
Mike West
Conceptually, I think this is the right direction, but the transitional types still scare me. ...
5 years ago (2015-12-15 09:01:38 UTC) #4
sof
+oilpan-reviews
5 years ago (2015-12-15 09:26:55 UTC) #6
haraken
ResourceFetcher::m_documentResources has been unnecessarily keeping Resources alive longer than needed, so this CL makes a ...
5 years ago (2015-12-15 09:34:25 UTC) #7
haraken
On 2015/12/15 09:34:25, haraken wrote: > ResourceFetcher::m_documentResources has been unnecessarily keeping Resources > alive longer ...
5 years ago (2015-12-15 09:36:17 UTC) #8
sof
Probably ok, but let me first test locally how this behaves with the leak detector ...
5 years ago (2015-12-15 10:08:01 UTC) #9
sof
no observable differences encountered with leak detector nor LSan - lgtm. https://codereview.chromium.org/1428383002/diff/220001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): ...
5 years ago (2015-12-15 12:29:45 UTC) #10
Nate Chapin
https://codereview.chromium.org/1428383002/diff/220001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/1428383002/diff/220001/third_party/WebKit/Source/core/fetch/Resource.h#newcode268 third_party/WebKit/Source/core/fetch/Resource.h:268: WeakPtrWillBeRawPtr<Resource> asWeakPtr(); On 2015/12/15 12:29:43, sof wrote: > Add ...
5 years ago (2015-12-15 20:30:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428383002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428383002/240001
5 years ago (2015-12-15 20:34:17 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/156603)
5 years ago (2015-12-15 23:10:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428383002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428383002/240001
5 years ago (2015-12-15 23:16:44 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/156677)
5 years ago (2015-12-16 03:42:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428383002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428383002/240001
5 years ago (2015-12-16 04:59:08 UTC) #22
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years ago (2015-12-16 05:58:40 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-16 05:59:35 UTC) #26
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/bf76e786d1c965ca8cf93e3abbc326f208b7c188
Cr-Commit-Position: refs/heads/master@{#365483}

Powered by Google App Engine
This is Rietveld 408576698