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

Issue 2606263002: Use background tasks for the compiler dispatcher (Closed)

Created:
3 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
3 years, 11 months ago
Reviewers:
vogelheim, marja
CC:
Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use background tasks for the compiler dispatcher BUG=v8:5215 R=marja@chromium.org,vogelheim@chromium.org Review-Url: https://codereview.chromium.org/2606263002 Cr-Commit-Position: refs/heads/master@{#42035} Committed: https://chromium.googlesource.com/v8/v8/+/7a1b3a7bebbef88e72c9f7747e1930f10ee10c80

Patch Set 1 #

Total comments: 9

Patch Set 2 : unit tests #

Total comments: 40

Patch Set 3 : updates #

Total comments: 6

Patch Set 4 : updates #

Total comments: 6

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -42 lines) Patch
M src/cancelable-task.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/cancelable-task.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.h View 1 2 3 4 5 chunks +58 lines, -1 line 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.cc View 1 2 3 4 8 chunks +174 lines, -27 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc View 1 2 8 chunks +190 lines, -11 lines 0 comments Download

Messages

Total messages: 38 (21 generated)
jochen (gone - plz use gerrit)
3 years, 11 months ago (2017-01-02 15:33:52 UTC) #1
jochen (gone - plz use gerrit)
first attempt, ptal unit tests will come soon...
3 years, 11 months ago (2017-01-02 15:36:19 UTC) #4
vogelheim
Generally looks good; some opinions below. I'm looking forward to the unit tests... :) https://codereview.chromium.org/2606263002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc ...
3 years, 11 months ago (2017-01-02 17:16:24 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2606263002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode185 src/compiler-dispatcher/compiler-dispatcher.cc:185: platform_->NumberOfAvailableBackgroundThreads() > 0; fair point. Since we only schedule ...
3 years, 11 months ago (2017-01-02 19:39:40 UTC) #8
jochen (gone - plz use gerrit)
ptal... now with tests
3 years, 11 months ago (2017-01-03 09:52:24 UTC) #11
vogelheim
lgtm, but w/ some more nitpicks & opinions. :) Also, two bots are unhappy... https://codereview.chromium.org/2606263002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc ...
3 years, 11 months ago (2017-01-03 10:32:37 UTC) #14
marja
lgtm, but... Like vogelheim@, I also find it confusing / surprising that the tasks don't ...
3 years, 11 months ago (2017-01-03 10:42:41 UTC) #15
marja
https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode284 src/compiler-dispatcher/compiler-dispatcher.cc:284: CompilerDispatcherJob* job = nullptr; Can you add an assert ...
3 years, 11 months ago (2017-01-03 10:43:42 UTC) #16
jochen (gone - plz use gerrit)
ptal Had to make CompilerDispatcher have its own cancelable task manager (instead of relying on ...
3 years, 11 months ago (2017-01-03 12:59:36 UTC) #19
marja
still lgtm but I still have some of the nits I had :) https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File ...
3 years, 11 months ago (2017-01-03 13:14:57 UTC) #20
vogelheim
lgtm. More looks-goodness, more opinions. :) https://codereview.chromium.org/2606263002/diff/40001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/40001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode101 src/compiler-dispatcher/compiler-dispatcher.cc:101: CompilerDispatcher* dispatcher); [Here, ...
3 years, 11 months ago (2017-01-03 13:23:02 UTC) #21
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode284 src/compiler-dispatcher/compiler-dispatcher.cc:284: CompilerDispatcherJob* job = nullptr; On 2017/01/03 at 13:14:57, marja ...
3 years, 11 months ago (2017-01-03 14:01:45 UTC) #26
marja
https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode284 src/compiler-dispatcher/compiler-dispatcher.cc:284: CompilerDispatcherJob* job = nullptr; On 2017/01/03 14:01:44, jochen wrote: ...
3 years, 11 months ago (2017-01-03 14:22:46 UTC) #27
jochen (gone - plz use gerrit)
grammar nits addressed... https://codereview.chromium.org/2606263002/diff/60001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2606263002/diff/60001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode372 src/compiler-dispatcher/compiler-dispatcher.cc:372: break; On 2017/01/03 at 14:22:45, marja ...
3 years, 11 months ago (2017-01-03 14:33:02 UTC) #30
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/2606263002/80001
3 years, 11 months ago (2017-01-03 14:34:51 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/v8/v8/+/7a1b3a7bebbef88e72c9f7747e1930f10ee10c80
3 years, 11 months ago (2017-01-03 15:24:05 UTC) #37
rmcilroy
3 years, 11 months ago (2017-01-03 15:51:32 UTC) #38
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2614433002/ by rmcilroy@chromium.org.

The reason for reverting is: Causes
IgnitionCompilerDispatcherTest.FinishNowWithBackgroundTask to fail.

https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20noi18n%20-%2....

Powered by Google App Engine
This is Rietveld 408576698