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

Issue 2610473002: Use TaskScheduler instead of WorkerPool in v8_platform.cc. (Closed)

Created:
3 years, 11 months ago by fdoray
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in v8_platform.cc. The following traits are used: Priority: Inherited (default) The priority is inherited from the calling context (i.e. TaskTraits are initialized with the priority of the current task). Shutdown behavior: CONTINUE_ON_SHUTDOWN Tasks posted with this mode which have not started executing before shutdown is initiated will never run. Tasks with this mode running at shutdown will be ignored (the worker will not be joined). Note: Tasks that were previously posted to base::WorkerPool should use this shutdown behavior because this is how base::WorkerPool handles all its tasks. MayBlock(): The task may block. BUG=659191 Review-Url: https://codereview.chromium.org/2610473002 Cr-Commit-Position: refs/heads/master@{#449976} Committed: https://chromium.googlesource.com/chromium/src/+/b83be4ca0e00b50b17619adf7f7de275455e9852

Patch Set 1 #

Patch Set 2 : Add ScopedAsyncTaskScheduler in RenderViewTest #

Patch Set 3 : Add ScopedAsyncTaskScheduler in APIBindingTest #

Patch Set 4 : Add dependency #

Patch Set 5 : Add ScopedAsyncTaskSchedulers #

Patch Set 6 : add dependency #

Patch Set 7 : fix test errors #

Patch Set 8 : fix test errors #

Patch Set 9 : BLOCK_SHUTDOWN #

Patch Set 10 : CONTINUE_ON_SHUTDOWN #

Patch Set 11 : Fix gin_unittests #

Patch Set 12 : JsToCppTests #

Patch Set 13 : Blink test environment #

Total comments: 2

Patch Set 14 : NumberOfAvailableBackgroundThreads #

Patch Set 15 : rebase #

Patch Set 16 : mayblock #

Patch Set 17 : no MayBlock #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -51 lines) Patch
M chrome/test/base/v8_unit_test.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/pepper/host_var_tracker_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/blink_test_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +14 lines, -11 lines 0 comments Download
M extensions/renderer/api_binding_test.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/renderer/gc_callback_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -3 lines 0 comments Download
M extensions/renderer/module_system_test.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M gin/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M gin/shell/gin_main.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +33 lines, -21 lines 0 comments Download
M gin/shell_runner_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M gin/test/file_runner.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M gin/test/v8_test.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M gin/v8_platform.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 3 chunks +12 lines, -15 lines 0 comments Download
M mojo/edk/js/tests/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/js/tests/js_to_cpp_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 87 (67 generated)
fdoray
jochen@: PTAL We are deprecating base::WorkerPool in favor of TaskScheduler. We don't have extensive knowledge ...
3 years, 11 months ago (2017-01-23 16:47:23 UTC) #50
jochen (gone - plz use gerrit)
can you explain what this MayBlock() means? How many threads will this end up using?
3 years, 11 months ago (2017-01-24 12:35:20 UTC) #51
fdoray
On 2017/01/24 12:35:20, jochen wrote: > can you explain what this MayBlock() means? > Tasks ...
3 years, 11 months ago (2017-01-24 12:58:39 UTC) #52
jochen (gone - plz use gerrit)
I assume it still works to post more background tasks from a background task, right? ...
3 years, 11 months ago (2017-01-24 14:30:13 UTC) #53
fdoray
https://codereview.chromium.org/2610473002/diff/240001/gin/v8_platform.cc File gin/v8_platform.cc (right): https://codereview.chromium.org/2610473002/diff/240001/gin/v8_platform.cc#newcode60 gin/v8_platform.cc:60: static_cast<size_t>(base::SysInfo::NumberOfProcessors()); On 2017/01/24 14:30:12, jochen (travelling til Feb 4) ...
3 years, 10 months ago (2017-02-03 17:20:01 UTC) #62
fdoray
PTAnL On 2017/01/24 14:30:13, jochen (travelling til Feb 4) wrote: > I assume it still ...
3 years, 10 months ago (2017-02-03 17:27:11 UTC) #63
jochen (gone - plz use gerrit)
On 2017/02/03 at 17:27:11, fdoray wrote: > PTAnL > > On 2017/01/24 14:30:13, jochen (travelling ...
3 years, 10 months ago (2017-02-03 17:46:03 UTC) #64
fdoray
> > > If I understood the doc correctly, those restrictions only apply if you'd ...
3 years, 10 months ago (2017-02-03 17:52:06 UTC) #65
jochen (gone - plz use gerrit)
the last place I added is https://cs.chromium.org/chromium/src/v8/src/compiler-dispatcher/compiler-dispatcher.cc?rcl=7c13382cd8e42485ab6a4334a0f121792131b0c0&l=584
3 years, 10 months ago (2017-02-03 17:55:08 UTC) #66
jochen (gone - plz use gerrit)
lgtm with updated CL description
3 years, 10 months ago (2017-02-03 17:55:33 UTC) #67
fdoray
jam@: Please review changes in mojo/.
3 years, 10 months ago (2017-02-03 18:25:35 UTC) #70
jam
lgtm
3 years, 10 months ago (2017-02-06 18:48:33 UTC) #71
fdoray
On 2017/02/03 17:55:08, jochen wrote: > the last place I added is > https://cs.chromium.org/chromium/src/v8/src/compiler-dispatcher/compiler-dispatcher.cc?rcl=7c13382cd8e42485ab6a4334a0f121792131b0c0&l=584 jochen@: ...
3 years, 10 months ago (2017-02-07 13:32:28 UTC) #72
jochen (gone - plz use gerrit)
On 2017/02/07 at 13:32:28, fdoray wrote: > On 2017/02/03 17:55:08, jochen wrote: > > the ...
3 years, 10 months ago (2017-02-07 15:15:13 UTC) #73
fdoray
On 2017/02/07 15:15:13, jochen wrote: > On 2017/02/07 at 13:32:28, fdoray wrote: > > On ...
3 years, 10 months ago (2017-02-07 15:20:39 UTC) #74
fdoray
On 2017/02/07 15:20:39, fdoray wrote: > On 2017/02/07 15:15:13, jochen wrote: > > On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 14:00:02 UTC) #76
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-09 13:19:02 UTC) #80
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/2610473002/340001
3 years, 10 months ago (2017-02-13 15:41:59 UTC) #83
commit-bot: I haz the power
Committed patchset #18 (id:340001) as https://chromium.googlesource.com/chromium/src/+/b83be4ca0e00b50b17619adf7f7de275455e9852
3 years, 10 months ago (2017-02-13 16:40:32 UTC) #86
jam
3 years, 10 months ago (2017-02-22 00:26:25 UTC) #87
Message was sent while issue was closed.
A revert of this CL (patchset #18 id:340001) has been created in
https://codereview.chromium.org/2711703002/ by jam@chromium.org.

The reason for reverting is: Causing extensions_unittests to hang and take 15
minutes.

BUG=694828.

Powered by Google App Engine
This is Rietveld 408576698