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

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed)

Created:
6 years, 5 months ago by nasko
Modified:
6 years, 4 months ago
CC:
aandrey+blink_chromium.org, abarth-chromium, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eustas+blink_chromium.org, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, jamesr, Nate Chapin, kinuko+worker_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

Change WokerThread to use a blink::WebThread. BUG=301515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179117

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix wait mode. #

Patch Set 4 : Fix debugger task. #

Patch Set 5 : Rebase on ToT. #

Patch Set 6 : Add idle notifications. #

Patch Set 7 : Add slow test expectations. #

Patch Set 8 : Stop the shared timer on cleanup. #

Patch Set 9 : Delete the shared timer on cleanup. #

Patch Set 10 : Some cleanup. #

Patch Set 11 : Fixes for idleHandler and thread creation/deletion. #

Patch Set 12 : Add slow test expectations. #

Patch Set 13 : Add slow test expectations. #

Total comments: 6

Patch Set 14 : Fix issues from jochen's review. #

Total comments: 3

Patch Set 15 : Rebase on ToT. #

Total comments: 6

Patch Set 16 : Another ToT rebase. #

Patch Set 17 : Fixes based on kinuko's review. #

Patch Set 18 : Use blink-side postDelayedTask instead of chromium Timer. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -470 lines) Patch
M LayoutTests/SlowTests View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/WorkerScriptController.cpp View 1 2 chunks +3 lines, -4 lines 0 comments Download
M Source/bindings/core/v8/WorkerScriptDebugServer.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/inspector/WorkerDebuggerAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/inspector/WorkerRuntimeAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/workers/DedicatedWorkerThread.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/DedicatedWorkerThread.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
D Source/core/workers/WorkerRunLoop.h View 1 1 chunk +0 lines, -92 lines 0 comments Download
D Source/core/workers/WorkerRunLoop.cpp View 1 1 chunk +0 lines, -293 lines 0 comments Download
M Source/core/workers/WorkerThread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +37 lines, -19 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 11 chunks +204 lines, -45 lines 0 comments Download
M Source/platform/scheduler/SchedulerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -6 lines 0 comments Download
M Source/web/WebWorkerRunLoop.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M public/platform/Platform.h View 1 chunk +2 lines, -0 lines 0 comments Download
M public/platform/WebThread.h View 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 27 (0 generated)
nasko
Hey Jochen, I think this CL is finally in a state good enough for reviewing. ...
6 years, 5 months ago (2014-07-24 10:20:04 UTC) #1
jochen (gone - plz use gerrit)
how are the WebThread objects deleted? I'd expect something in the WebThread::cleanup to call the ...
6 years, 5 months ago (2014-07-24 12:12:33 UTC) #2
nasko
WebThread is owned by WorkerThread, so it will be deleted as part of WorkerThread cleanup. ...
6 years, 5 months ago (2014-07-24 12:53:18 UTC) #3
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-24 13:26:03 UTC) #4
nasko
ager@, can you look over this CL to ensure I'm not messing up oilpan semantics ...
6 years, 5 months ago (2014-07-24 13:30:36 UTC) #5
haraken
On 2014/07/24 13:30:36, nasko (in Munich) wrote: > ager@, can you look over this CL ...
6 years, 5 months ago (2014-07-24 13:32:37 UTC) #6
nasko
Adding aandrey@, who recently fixed instrumentation in workers. Can you ensure I didn't undo your ...
6 years, 5 months ago (2014-07-24 15:03:18 UTC) #7
aandrey
Instrumentation in workers looks good. https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp#newcode334 Source/core/workers/WorkerThread.cpp:334: InspectorInstrumentation::didKillAllExecutionContextTasks(m_workerGlobalScope.get()); is it safe ...
6 years, 5 months ago (2014-07-24 16:07:53 UTC) #8
aandrey
also cc-ing @yurys on worker instrumentation
6 years, 5 months ago (2014-07-24 16:10:52 UTC) #9
haraken
LGTM from the oilpan perspective.
6 years, 5 months ago (2014-07-25 01:10:20 UTC) #10
nasko
https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp#newcode334 Source/core/workers/WorkerThread.cpp:334: InspectorInstrumentation::didKillAllExecutionContextTasks(m_workerGlobalScope.get()); On 2014/07/24 16:07:53, aandrey wrote: > is it ...
6 years, 5 months ago (2014-07-25 06:30:14 UTC) #11
yurys
https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp#newcode334 Source/core/workers/WorkerThread.cpp:334: InspectorInstrumentation::didKillAllExecutionContextTasks(m_workerGlobalScope.get()); It is unsafe to access m_workerGlobalScope here as ...
6 years, 5 months ago (2014-07-25 06:41:57 UTC) #12
yurys
On 2014/07/25 06:30:14, nasko (in Munich) wrote: > https://codereview.chromium.org/400153002/diff/230018/Source/core/workers/WorkerThread.cpp > File Source/core/workers/WorkerThread.cpp (right): > > ...
6 years, 5 months ago (2014-07-25 07:24:46 UTC) #13
darin (slow to review)
https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h File public/platform/WebThread.h (right): https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h#newcode73 public/platform/WebThread.h:73: virtual void setSharedTimerFiredFunction(SharedTimerFunction) = 0; Why was this added ...
6 years, 5 months ago (2014-07-25 16:30:31 UTC) #14
kinuko
https://codereview.chromium.org/400153002/diff/290001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/400153002/diff/290001/Source/core/workers/WorkerThread.cpp#newcode345 Source/core/workers/WorkerThread.cpp:345: return; nit: no need to return here (the end ...
6 years, 5 months ago (2014-07-26 03:49:39 UTC) #15
jochen (gone - plz use gerrit)
On 2014/07/25 at 16:30:31, darin wrote: > https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h > File public/platform/WebThread.h (right): > > https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h#newcode73 ...
6 years, 4 months ago (2014-07-28 08:54:23 UTC) #16
nasko
https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h File public/platform/WebThread.h (right): https://codereview.chromium.org/400153002/diff/290001/public/platform/WebThread.h#newcode73 public/platform/WebThread.h:73: virtual void setSharedTimerFiredFunction(SharedTimerFunction) = 0; On 2014/07/25 16:30:31, darin ...
6 years, 4 months ago (2014-07-28 09:52:59 UTC) #17
nasko
Fixes based on kinuko's review. https://codereview.chromium.org/400153002/diff/290001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/400153002/diff/290001/Source/core/workers/WorkerThread.cpp#newcode345 Source/core/workers/WorkerThread.cpp:345: return; On 2014/07/26 03:49:39, ...
6 years, 4 months ago (2014-07-28 12:57:13 UTC) #18
jochen (gone - plz use gerrit)
postDelayedTask version lgtm
6 years, 4 months ago (2014-07-29 08:20:14 UTC) #19
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 4 months ago (2014-07-29 08:51:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/400153002/370001
6 years, 4 months ago (2014-07-29 08:51:51 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-07-29 09:26:18 UTC) #22
commit-bot: I haz the power
Change committed as 179117
6 years, 4 months ago (2014-07-29 09:55:44 UTC) #23
alancutter (OOO until 2018)
A revert of this CL has been created in https://codereview.chromium.org/430493002/ by alancutter@chromium.org. The reason for ...
6 years, 4 months ago (2014-07-29 11:22:31 UTC) #24
darin (slow to review)
https://codereview.chromium.org/400153002/diff/370001/public/platform/WebThread.h File public/platform/WebThread.h (right): https://codereview.chromium.org/400153002/diff/370001/public/platform/WebThread.h#newcode71 public/platform/WebThread.h:71: // Delayed work is driven by a shared timer. ...
6 years, 4 months ago (2014-07-29 19:28:21 UTC) #25
nasko
On 2014/07/29 19:28:21, darin wrote: > https://codereview.chromium.org/400153002/diff/370001/public/platform/WebThread.h > File public/platform/WebThread.h (right): > > https://codereview.chromium.org/400153002/diff/370001/public/platform/WebThread.h#newcode71 > ...
6 years, 4 months ago (2014-07-29 22:12:58 UTC) #26
haraken
6 years, 4 months ago (2014-08-01 20:41:04 UTC) #27
Message was sent while issue was closed.
This thread caused timeout in a bunch of worker tests in oilpan builds. I'm
investigating. (You don't need to revert since oilpan builds are not a tree
closer.)

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40...

Powered by Google App Engine
This is Rietveld 408576698