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

Issue 2151173003: Move WorkerThreadable internal classes to Oilpan heap (Closed)

Created:
4 years, 5 months ago by yhirano
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org, tyoshino+watch_chromium.org, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@onheap-threadable-loader-client-wrapper
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move WorkerThreadableLoader internal classes to Oilpan heap This CL splits WorkerThreadableLoader::MainThreadBridgeBase (and subclasses) into the following on-heap classes. - TaskForwarder and subclasses Lives in the main thread and forwards tasks to the worker thread. - Bridge Lives in the worker thread - Peer Lives in the worker thread and forwards notifications from the loader living in the main thread to ThreadableLoaderClientWrapper living in the worker thread with a TaskForwarder. Pointers to an object living in the other thread are held as CrossThread[Weak]Persistents (e.g., Bridge::m_peer). BUG=587663 Committed: https://crrev.com/279f12d293087b7619089ecbe418e83df9d04a76 Cr-Commit-Position: refs/heads/master@{#409727}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 18

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Total comments: 8

Patch Set 8 : fix #

Patch Set 9 : fix #

Patch Set 10 : fix #

Total comments: 2

Patch Set 11 : fix #

Total comments: 2

Patch Set 12 : fix #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -309 lines) Patch
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +82 lines, -108 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +370 lines, -201 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 107 (73 generated)
yhirano
4 years, 5 months ago (2016-07-21 02:07:44 UTC) #11
haraken
The overall approach looks good. https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode79 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:79: WorkerThreadableLoader::~WorkerThreadableLoader() Is it guaranteed ...
4 years, 5 months ago (2016-07-21 10:22:29 UTC) #13
yhirano
https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode79 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:79: WorkerThreadableLoader::~WorkerThreadableLoader() On 2016/07/21 10:22:29, haraken wrote: > > Is ...
4 years, 5 months ago (2016-07-21 10:56:09 UTC) #14
yhirano
https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode201 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:201: } On 2016/07/21 10:22:29, haraken wrote: > > Can ...
4 years, 5 months ago (2016-07-21 11:44:55 UTC) #17
yhirano
https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode201 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:201: } On 2016/07/21 11:44:55, yhirano wrote: > On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 15:06:27 UTC) #20
haraken
We might want to have a figure (as a comment in code) that illustrates the ...
4 years, 5 months ago (2016-07-21 15:56:14 UTC) #21
haraken
We might want to have a figure (as a comment in code) that illustrates the ...
4 years, 5 months ago (2016-07-21 15:56:14 UTC) #22
yhirano
> We might want to have a figure (as a comment in code) that illustrates ...
4 years, 5 months ago (2016-07-22 01:57:36 UTC) #25
yhirano
https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode349 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:349: CrossThreadPersistent<ThreadableLoaderClientWrapper> clientWrapper = m_clientWrapper.get(); On 2016/07/21 15:56:14, haraken wrote: ...
4 years, 5 months ago (2016-07-22 04:42:14 UTC) #37
haraken
Mostly looks good from the Oilpan perspective. https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h (right): https://codereview.chromium.org/2151173003/diff/60001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h#newcode219 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h:219: CrossThreadWeakPersistent<ThreadableLoaderClientWrapper> m_clientWrapper; ...
4 years, 5 months ago (2016-07-22 08:57:30 UTC) #40
yhirano
https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode280 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:280: m_peer = nullptr; On 2016/07/22 08:57:30, haraken wrote: > ...
4 years, 5 months ago (2016-07-25 02:20:59 UTC) #47
yhirano
On 2016/07/22 08:57:30, haraken wrote: > (snip) > > Makes sense. > > Once we ...
4 years, 5 months ago (2016-07-25 02:29:35 UTC) #48
haraken
https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode471 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:471: void WorkerThreadableLoader::Peer::contextDestroyed() On 2016/07/25 02:20:59, yhirano wrote: > On ...
4 years, 5 months ago (2016-07-25 07:48:49 UTC) #51
yhirano
https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode471 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:471: void WorkerThreadableLoader::Peer::contextDestroyed() On 2016/07/25 07:48:48, haraken wrote: > On ...
4 years, 5 months ago (2016-07-25 11:07:46 UTC) #56
haraken
On 2016/07/25 11:07:46, yhirano wrote: > https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp > File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): > > https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode471 > ...
4 years, 5 months ago (2016-07-25 11:13:28 UTC) #57
yhirano
On 2016/07/25 11:13:28, haraken wrote: > On 2016/07/25 11:07:46, yhirano wrote: > > > https://codereview.chromium.org/2151173003/diff/160001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp ...
4 years, 5 months ago (2016-07-25 11:25:01 UTC) #58
haraken
On 2016/07/25 11:25:01, yhirano wrote: > On 2016/07/25 11:13:28, haraken wrote: > > On 2016/07/25 ...
4 years, 5 months ago (2016-07-25 11:29:41 UTC) #59
yhirano
On 2016/07/25 11:29:41, haraken wrote: > On 2016/07/25 11:25:01, yhirano wrote: > > On 2016/07/25 ...
4 years, 5 months ago (2016-07-25 12:10:04 UTC) #60
haraken
On 2016/07/25 12:10:04, yhirano wrote: > On 2016/07/25 11:29:41, haraken wrote: > > On 2016/07/25 ...
4 years, 5 months ago (2016-07-25 12:15:44 UTC) #61
hiroshige
https://codereview.chromium.org/2151173003/diff/240001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/240001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode136 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:136: DCHECK(!m_isSignalCalled); Violations to DCHECKs on |m_isSignalCalled| and |m_isWaitDone| cause ...
4 years, 4 months ago (2016-07-26 07:32:52 UTC) #66
yhirano
https://codereview.chromium.org/2151173003/diff/240001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2151173003/diff/240001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode136 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:136: DCHECK(!m_isSignalCalled); On 2016/07/26 07:32:52, hiroshige wrote: > Violations to ...
4 years, 4 months ago (2016-07-26 09:57:34 UTC) #69
nhiroki
lgtm
4 years, 4 months ago (2016-07-26 10:26:24 UTC) #70
kinuko
DBC (minor) https://codereview.chromium.org/2151173003/diff/260001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h (right): https://codereview.chromium.org/2151173003/diff/260001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h#newcode94 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h:94: class AsyncTaskForwarder final : public TaskForwarder { ...
4 years, 4 months ago (2016-07-27 02:17:50 UTC) #74
yhirano
https://codereview.chromium.org/2151173003/diff/260001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h (right): https://codereview.chromium.org/2151173003/diff/260001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h#newcode94 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h:94: class AsyncTaskForwarder final : public TaskForwarder { On 2016/07/27 ...
4 years, 4 months ago (2016-07-28 07:25:12 UTC) #78
yhirano
+japhet@
4 years, 4 months ago (2016-07-28 07:25:48 UTC) #80
yhirano
On 2016/07/28 07:25:48, yhirano wrote: > +japhet@ Nate, Hiroshige: Do you have further comments?
4 years, 4 months ago (2016-08-01 07:57:43 UTC) #85
hiroshige
On 2016/08/01 07:57:43, yhirano wrote: > On 2016/07/28 07:25:48, yhirano wrote: > > +japhet@ > ...
4 years, 4 months ago (2016-08-01 08:16:26 UTC) #86
Nate Chapin
On 2016/08/01 07:57:43, yhirano wrote: > On 2016/07/28 07:25:48, yhirano wrote: > > +japhet@ > ...
4 years, 4 months ago (2016-08-03 19:23:10 UTC) #89
yhirano
On 2016/08/03 19:23:10, Nate Chapin wrote: > On 2016/08/01 07:57:43, yhirano wrote: > > On ...
4 years, 4 months ago (2016-08-04 03:06:27 UTC) #95
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151173003/300001
4 years, 4 months ago (2016-08-04 03:55:36 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/203883)
4 years, 4 months ago (2016-08-04 05:47:22 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151173003/300001
4 years, 4 months ago (2016-08-04 05:50:04 UTC) #103
commit-bot: I haz the power
Committed patchset #13 (id:300001)
4 years, 4 months ago (2016-08-04 06:24:04 UTC) #105
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 06:25:38 UTC) #107
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/279f12d293087b7619089ecbe418e83df9d04a76
Cr-Commit-Position: refs/heads/master@{#409727}

Powered by Google App Engine
This is Rietveld 408576698