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

Issue 1569273004: Move ResourceOwner on to the oilpan heap. (Closed)

Created:
4 years, 11 months ago by Nate Chapin
Modified:
4 years, 11 months ago
CC:
chromium-reviews, eae+blinkwatch, fs, eric.carlson_apple.com, kinuko+watch, rwlbuis, Yoav Weiss, blink-reviews-html_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, blink-reviews, nessy, sof, loading-reviews_chromium.org, loading-reviews+fetch_chromium.org, Nate Chapin, vcarbune.chromium, philipj_slow, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, gasubic, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ResourceOwner on to the oilpan heap. DocumentThreadableLoader isn't ready for oilpan, so drop its inheritance of ResourceOwner. This will better enable moving Resource to the oilpan heap, since ResourceOwner can't easily support both oilpan and non-oilpan holders of Resources if Resource is on the heap. BUG=571190 Committed: https://crrev.com/b45282c65925dba8daaeebb93f00932c1f856709 Cr-Commit-Position: refs/heads/master@{#370214}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 12

Patch Set 7 : Address comments #

Patch Set 8 : #

Total comments: 17

Patch Set 9 : trace(), remove prefinalizer from ResourceOwner #

Patch Set 10 : Speculative win trybot compile fix #

Patch Set 11 : Another speculative win compile fix #

Patch Set 12 : Speculative compile fix #3 #

Patch Set 13 : More thorough, less speculative compile fix #

Patch Set 14 : win_chromium_compile_dbg_ng is the worst #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -236 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +33 lines, -68 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +3 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ProcessingInstruction.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +20 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceOwner.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +53 lines, -57 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h View 1 2 3 4 5 6 2 chunks +26 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/TextTrackLoader.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/TextTrackLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (25 generated)
Nate Chapin
yhirano, would you mind taking a look at this? I'm not sure I've got all ...
4 years, 11 months ago (2016-01-09 00:56:07 UTC) #2
haraken
(Let me take a look later.)
4 years, 11 months ago (2016-01-10 02:40:54 UTC) #4
haraken
I want to have Sigbjorn take another look at if the logic around PendingScript is ...
4 years, 11 months ago (2016-01-12 00:22:52 UTC) #6
yhirano
https://codereview.chromium.org/1569273004/diff/100001/third_party/WebKit/Source/core/fetch/ResourceOwner.h File third_party/WebKit/Source/core/fetch/ResourceOwner.h (right): https://codereview.chromium.org/1569273004/diff/100001/third_party/WebKit/Source/core/fetch/ResourceOwner.h#newcode44 third_party/WebKit/Source/core/fetch/ResourceOwner.h:44: virtual ~ResourceOwner() { clearResource(); } You cannot call clearResource() ...
4 years, 11 months ago (2016-01-12 07:54:49 UTC) #7
Nate Chapin
https://codereview.chromium.org/1569273004/diff/100001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1569273004/diff/100001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode82 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:82: dispose(); On 2016/01/12 00:22:52, haraken wrote: > > I ...
4 years, 11 months ago (2016-01-13 20:36:33 UTC) #8
haraken
LGTM https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/fetch/ResourceOwner.h File third_party/WebKit/Source/core/fetch/ResourceOwner.h (right): https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/fetch/ResourceOwner.h#newcode71 third_party/WebKit/Source/core/fetch/ResourceOwner.h:71: #endif Nit: In this CL it is safe ...
4 years, 11 months ago (2016-01-14 04:26:43 UTC) #9
yhirano
https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode169 third_party/WebKit/Source/core/dom/PendingScript.cpp:169: visitor->trace(m_streamer); + ResourceOwner<ScriptResource>::trace(visitor); https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/ProcessingInstruction.h File third_party/WebKit/Source/core/dom/ProcessingInstruction.h (right): https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/ProcessingInstruction.h#newcode36 third_party/WebKit/Source/core/dom/ProcessingInstruction.h:36: ...
4 years, 11 months ago (2016-01-14 11:55:29 UTC) #10
Nate Chapin
https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/1569273004/diff/140001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode169 third_party/WebKit/Source/core/dom/PendingScript.cpp:169: visitor->trace(m_streamer); On 2016/01/14 11:55:29, yhirano wrote: > + ResourceOwner<ScriptResource>::trace(visitor); ...
4 years, 11 months ago (2016-01-14 22:54:02 UTC) #11
yhirano
lgtm
4 years, 11 months ago (2016-01-15 00:44:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/180001
4 years, 11 months ago (2016-01-15 00:45:47 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/111606) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-15 01:55:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/180001
4 years, 11 months ago (2016-01-15 17:05:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/132261)
4 years, 11 months ago (2016-01-15 18:48:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/200001
4 years, 11 months ago (2016-01-15 23:25:22 UTC) #24
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/167163)
4 years, 11 months ago (2016-01-15 23:29:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/200001
4 years, 11 months ago (2016-01-15 23:33:48 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/132461)
4 years, 11 months ago (2016-01-16 00:33:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/200001
4 years, 11 months ago (2016-01-16 00:39:23 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/136338)
4 years, 11 months ago (2016-01-16 00:45:46 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/220001
4 years, 11 months ago (2016-01-16 00:56:20 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/132522)
4 years, 11 months ago (2016-01-16 01:21:01 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/240001
4 years, 11 months ago (2016-01-19 20:27:41 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/133253)
4 years, 11 months ago (2016-01-19 21:05:20 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/260001
4 years, 11 months ago (2016-01-19 21:11:54 UTC) #45
Nate Chapin
OK, I think have my compile woes fixed. I moved PendingScript::Type to become ScriptStreamer::Type, since ...
4 years, 11 months ago (2016-01-19 21:44:51 UTC) #46
haraken
On 2016/01/19 21:44:51, Nate Chapin wrote: > OK, I think have my compile woes fixed. ...
4 years, 11 months ago (2016-01-19 21:52:20 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-19 22:35:58 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1569273004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1569273004/260001
4 years, 11 months ago (2016-01-19 22:38:23 UTC) #52
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 11 months ago (2016-01-19 22:48:09 UTC) #53
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 22:50:00 UTC) #55
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b45282c65925dba8daaeebb93f00932c1f856709
Cr-Commit-Position: refs/heads/master@{#370214}

Powered by Google App Engine
This is Rietveld 408576698