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

Issue 2573493002: Use idle time to make progress on scheduled compilation jobs (Closed)

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

Description

Use idle time to make progress on scheduled compilation jobs BUG=v8:5215 R=rmcilroy@chromium.org,marja@chromium.org,vogelheim@chromium.org Review-Url: https://codereview.chromium.org/2573493002 Cr-Commit-Position: refs/heads/master@{#41767} Committed: https://chromium.googlesource.com/v8/v8/+/692ba84f4fa30df106129d6f376448b4b421e892

Patch Set 1 #

Total comments: 22

Patch Set 2 : updates #

Total comments: 26

Patch Set 3 : updates #

Patch Set 4 : updates #

Patch Set 5 : add comment #

Total comments: 1

Patch Set 6 : Daniel's loop variant #

Total comments: 1

Patch Set 7 : updates #

Total comments: 7

Patch Set 8 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -40 lines) Patch
M src/compiler-dispatcher/compiler-dispatcher.h View 1 2 3 4 3 chunks +17 lines, -1 line 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.cc View 1 2 3 4 5 6 7 9 chunks +109 lines, -5 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-tracer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-tracer.cc View 1 3 chunks +8 lines, -5 lines 0 comments Download
M src/isolate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc View 1 2 3 2 chunks +164 lines, -18 lines 0 comments Download

Messages

Total messages: 57 (33 generated)
jochen (gone - plz use gerrit)
4 years ago (2016-12-12 16:40:30 UTC) #1
vogelheim
Looks good, but I'm not sure I fully understand it. Some comments below. https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File ...
4 years ago (2016-12-12 17:51:32 UTC) #8
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode75 src/compiler-dispatcher/compiler-dispatcher.cc:75: // CancelableIdleTask implementation. On 2016/12/12 at 17:51:32, vogelheim wrote: ...
4 years ago (2016-12-12 20:28:25 UTC) #9
marja
https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode59 src/compiler-dispatcher/compiler-dispatcher.cc:59: } Can we assert here that if the try ...
4 years ago (2016-12-13 09:09:01 UTC) #10
marja
https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode209 src/compiler-dispatcher/compiler-dispatcher.cc:209: for (double idle_time_in_seconds = What if coming up with ...
4 years ago (2016-12-13 09:21:13 UTC) #11
vogelheim
https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode75 src/compiler-dispatcher/compiler-dispatcher.cc:75: // CancelableIdleTask implementation. On 2016/12/12 20:28:25, jochen wrote: > ...
4 years ago (2016-12-13 09:40:33 UTC) #12
jochen (gone - plz use gerrit)
next attempt, ptal https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#newcode59 src/compiler-dispatcher/compiler-dispatcher.cc:59: } On 2016/12/13 at 09:09:01, marja ...
4 years ago (2016-12-15 13:54:34 UTC) #15
vogelheim
lgtm (a few nitpicks, however) https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher-tracer.cc File src/compiler-dispatcher/compiler-dispatcher-tracer.cc (right): https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher-tracer.cc#newcode158 src/compiler-dispatcher/compiler-dispatcher-tracer.cc:158: double sum = buffer.Sum([](double ...
4 years ago (2016-12-15 15:24:12 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher-tracer.cc File src/compiler-dispatcher/compiler-dispatcher-tracer.cc (right): https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher-tracer.cc#newcode164 src/compiler-dispatcher/compiler-dispatcher-tracer.cc:164: if (buffer.Count() == 0) return kEstimatedRuntimeWithoutData; On 2016/12/15 at ...
4 years ago (2016-12-15 15:37:59 UTC) #19
marja
https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode208 src/compiler-dispatcher/compiler-dispatcher.cc:208: void CompilerDispatcher::DoIdleWorkForJobSet( Can you add some high-level comments to ...
4 years ago (2016-12-15 15:56:43 UTC) #22
jochen (gone - plz use gerrit)
here's a simpler version https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/20001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode224 src/compiler-dispatcher/compiler-dispatcher.cc:224: it = jobs_for_main_thread_.erase(it); On 2016/12/15 ...
4 years ago (2016-12-15 20:18:44 UTC) #29
vogelheim
lgtm https://codereview.chromium.org/2573493002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode231 src/compiler-dispatcher/compiler-dispatcher.cc:231: } I like this version much better. --------------------------------- ...
4 years ago (2016-12-16 10:45:08 UTC) #34
jochen (gone - plz use gerrit)
implemented (almost) your version, wdyt?
4 years ago (2016-12-16 11:51:52 UTC) #37
vogelheim
On 2016/12/16 11:51:52, jochen wrote: > implemented (almost) your version, wdyt? Thank you, lgtm. The ...
4 years ago (2016-12-16 11:59:53 UTC) #38
marja
https://codereview.chromium.org/2573493002/diff/100001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/100001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode223 src/compiler-dispatcher/compiler-dispatcher.cc:223: DoNextStepOnMainThread(isolate_, job->second.get(), One (possibly unintended?) property of this code ...
4 years ago (2016-12-16 12:00:24 UTC) #39
marja
haha, that's what the code does; I read it wrong. :) lgtm
4 years ago (2016-12-16 12:02:33 UTC) #40
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/2573493002/120001
4 years ago (2016-12-16 12:04:25 UTC) #43
rmcilroy
I like it, a nit and some questions, but LGTM https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode20 ...
4 years ago (2016-12-16 12:16:07 UTC) #44
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode218 src/compiler-dispatcher/compiler-dispatcher.cc:218: } else if (IsFinished(job->second.get())) { On 2016/12/16 at 12:16:07, ...
4 years ago (2016-12-16 12:22:50 UTC) #46
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/2573493002/140001
4 years ago (2016-12-16 12:23:15 UTC) #49
rmcilroy
https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2573493002/diff/120001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode218 src/compiler-dispatcher/compiler-dispatcher.cc:218: } else if (IsFinished(job->second.get())) { On 2016/12/16 12:22:50, jochen ...
4 years ago (2016-12-16 12:37:39 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/19580) v8_win64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years ago (2016-12-16 13:23:08 UTC) #52
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/2573493002/140001
4 years ago (2016-12-16 14:19:09 UTC) #54
commit-bot: I haz the power
4 years ago (2016-12-16 14:40:39 UTC) #57
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/v8/v8/+/692ba84f4fa30df106129d6f376448b4b42...

Powered by Google App Engine
This is Rietveld 408576698