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

Issue 2204183002: Prepare CompositorWorker for per thread heap (Closed)

Created:
4 years, 4 months ago by keishi
Modified:
4 years, 3 months ago
Reviewers:
haraken, oilpan-reviews
CC:
chromium-reviews, kinuko+worker_chromium.org, oilpan-reviews, Mads Ager (chromium), sof, eae+blinkwatch, falken, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, horo+watch_chromium.org, kinuko+watch, kouhei+heap_chromium.org, blink-worker-reviews_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare CompositorWorker for per thread heap Replace cross thread references with CrossThreadPersistents. BUG=591606 Committed: https://crrev.com/c59f742ca99b5695cab3c7d118d23d2c0a800d8c Cr-Commit-Position: refs/heads/master@{#418175}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Patch Set 8 : fix #

Total comments: 11

Patch Set 9 : fix #

Patch Set 10 : fix #

Patch Set 11 : fix #

Patch Set 12 : fix #

Total comments: 3

Patch Set 13 : fix #

Patch Set 14 : fix #

Total comments: 6

Patch Set 15 : fix #

Patch Set 16 : fix #

Patch Set 17 : fix #

Total comments: 11

Patch Set 18 : fix #

Patch Set 19 : fix #

Patch Set 20 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -66 lines) Patch
D third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-disconnect-worker-terminate.html View 1 2 3 4 5 6 1 chunk +0 lines, -38 lines 0 comments Download
D third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-idle.js View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.h View 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxyClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorMutatorImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorMutatorImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorProxyClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (34 generated)
keishi
PTAL https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-disconnect-worker-terminate.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-disconnect-worker-terminate.html (left): https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-disconnect-worker-terminate.html#oldcode20 third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-disconnect-worker-terminate.html:20: waitUntilWorkerThreadsExit(function() { CompositorWorker termination != compositor thread termination. ...
4 years, 4 months ago (2016-08-22 09:47:36 UTC) #25
keishi
PTAL
4 years, 4 months ago (2016-08-22 09:48:07 UTC) #27
haraken
https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h File third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h (right): https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h#newcode111 third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h:111: CrossThreadPersistent<WorkerGlobalScope> m_workerGlobalScope; I want to make sure that these ...
4 years, 4 months ago (2016-08-22 14:24:44 UTC) #28
haraken
What's the status of this CL? Is there anything blocking you from enabling the per-thread ...
4 years, 3 months ago (2016-09-01 19:01:58 UTC) #29
keishi
Details are in the comments below but, in order to do leak detection correctly, collectAllGarbage ...
4 years, 3 months ago (2016-09-02 06:41:55 UTC) #30
haraken
https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h File third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h (right): https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h#newcode111 third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h:111: CrossThreadPersistent<WorkerGlobalScope> m_workerGlobalScope; On 2016/09/02 06:41:55, keishi wrote: > On ...
4 years, 3 months ago (2016-09-02 09:39:18 UTC) #31
keishi
https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp File third_party/WebKit/Source/web/CompositorMutatorImpl.cpp (right): https://codereview.chromium.org/2204183002/diff/140001/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp#newcode81 third_party/WebKit/Source/web/CompositorMutatorImpl.cpp:81: CrossThreadPersistent<CompositorProxyClientImpl> protect(it); On 2016/09/02 09:39:17, haraken wrote: > On ...
4 years, 3 months ago (2016-09-07 10:14:42 UTC) #32
haraken
https://codereview.chromium.org/2204183002/diff/260001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2204183002/diff/260001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode534 third_party/WebKit/Source/platform/heap/Persistent.h:534: DCHECK(!Parent::get() || !ThreadState::current() || &ThreadState::fromObject(Parent::get())->heap() == &ThreadState::current()->heap()); I don't ...
4 years, 3 months ago (2016-09-07 15:10:31 UTC) #33
keishi
https://codereview.chromium.org/2204183002/diff/260001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2204183002/diff/260001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode534 third_party/WebKit/Source/platform/heap/Persistent.h:534: DCHECK(!Parent::get() || !ThreadState::current() || &ThreadState::fromObject(Parent::get())->heap() == &ThreadState::current()->heap()); On 2016/09/07 ...
4 years, 3 months ago (2016-09-12 09:00:48 UTC) #34
haraken
Mostly LG https://codereview.chromium.org/2204183002/diff/320001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2204183002/diff/320001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode477 third_party/WebKit/Source/platform/heap/Persistent.h:477: static CrossThreadPersistent<U> protectWeak(const PersistentBase<U, WeakPersistentConfiguration, CrossThreadPersistentConfiguration>& other) ...
4 years, 3 months ago (2016-09-12 11:45:09 UTC) #35
keishi
https://codereview.chromium.org/2204183002/diff/320001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2204183002/diff/320001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode532 third_party/WebKit/Source/platform/heap/Persistent.h:532: T& operator*() const On 2016/09/12 11:45:09, haraken wrote: > ...
4 years, 3 months ago (2016-09-13 03:12:43 UTC) #38
haraken
LGTM
4 years, 3 months ago (2016-09-13 05:09:48 UTC) #43
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/2204183002/380001
4 years, 3 months ago (2016-09-13 05:13:41 UTC) #45
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 3 months ago (2016-09-13 05:18:05 UTC) #47
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 05:21:16 UTC) #49
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/c59f742ca99b5695cab3c7d118d23d2c0a800d8c
Cr-Commit-Position: refs/heads/master@{#418175}

Powered by Google App Engine
This is Rietveld 408576698