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

Issue 104583003: [platform] Implement a worker pool (Closed)

Created:
7 years ago by jochen (gone - plz use gerrit)
Modified:
7 years ago
CC:
v8-dev
Visibility:
Public.

Description

[platform] Implement a worker pool We don't use the worker pool yet, however, there are tests. Yay. The next step is to use the worker pool for parallel sweeping. I've also started to move the platform related files into a sub directory. The goal is to eventually build all the platform stuff as a separate library which is used by d8 and cctest (and other embedders that wish to use the default implementation) but not by chromium. BUG=v8:3015 R=hpayer@chromium.org, svenpanne@chromium.org LOG=n Committed: https://code.google.com/p/v8/source/detail?r=18380

Patch Set 1 #

Total comments: 4

Patch Set 2 : updates #

Total comments: 1

Patch Set 3 : updates #

Total comments: 17

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : updates #

Total comments: 1

Patch Set 7 : updates #

Total comments: 4

Patch Set 8 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -223 lines) Patch
D src/default-platform.h View 1 chunk +0 lines, -55 lines 0 comments Download
D src/default-platform.cc View 1 chunk +0 lines, -56 lines 0 comments Download
M src/isolate.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A + src/libplatform/default-platform.h View 1 2 3 4 5 3 chunks +23 lines, -4 lines 0 comments Download
A + src/libplatform/default-platform.cc View 1 2 3 4 5 2 chunks +41 lines, -8 lines 0 comments Download
A + src/libplatform/task-queue.h View 1 2 3 4 5 6 7 1 chunk +30 lines, -15 lines 0 comments Download
A + src/libplatform/task-queue.cc View 2 3 1 chunk +40 lines, -19 lines 0 comments Download
A + src/libplatform/worker-thread.h View 1 chunk +19 lines, -13 lines 0 comments Download
A + src/libplatform/worker-thread.cc View 1 1 chunk +18 lines, -17 lines 0 comments Download
M src/v8.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A test/cctest/test-libplatform.h View 1 2 3 4 5 6 7 1 chunk +120 lines, -0 lines 0 comments Download
A + test/cctest/test-libplatform-task-queue.cc View 1 2 3 4 1 chunk +55 lines, -15 lines 0 comments Download
A + test/cctest/test-libplatform-worker-thread.cc View 1 2 3 1 chunk +25 lines, -16 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jochen (gone - plz use gerrit)
7 years ago (2013-12-04 15:30:32 UTC) #1
jochen (gone - plz use gerrit)
+svenpanne
7 years ago (2013-12-05 08:55:04 UTC) #2
Sven Panne
First round of comments... https://codereview.chromium.org/104583003/diff/1/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/1/src/libplatform/default-platform.cc#newcode88 src/libplatform/default-platform.cc:88: thread_pool_size_ = Max(Min(thread_pool_size_, 4), 1); ...
7 years ago (2013-12-05 10:04:11 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/104583003/diff/1/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/1/src/libplatform/default-platform.cc#newcode88 src/libplatform/default-platform.cc:88: thread_pool_size_ = Max(Min(thread_pool_size_, 4), 1); On 2013/12/05 10:04:11, Sven ...
7 years ago (2013-12-05 12:58:52 UTC) #4
Sven Panne
LGTM with a nit. https://codereview.chromium.org/104583003/diff/20001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/20001/src/libplatform/default-platform.cc#newcode87 src/libplatform/default-platform.cc:87: thread_pool_size_ = Max(Min(thread_pool_size_, 4), 1); ...
7 years ago (2013-12-05 13:12:30 UTC) #5
Hannes Payer (out of office)
https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc#newcode62 src/libplatform/default-platform.cc:62: ASSERT(thread_pool_size >= 0); What about: void DefaultPlatform::SetThreadPoolSize(int thread_pool_size=0) and ...
7 years ago (2013-12-09 18:50:51 UTC) #6
jochen (gone - plz use gerrit)
https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc#newcode62 src/libplatform/default-platform.cc:62: ASSERT(thread_pool_size >= 0); On 2013/12/09 18:50:51, Hannes Payer wrote: ...
7 years ago (2013-12-09 19:04:31 UTC) #7
jochen (gone - plz use gerrit)
updated, PTAL
7 years ago (2013-12-10 09:07:12 UTC) #8
Sven Panne
LGTM (still) with a nit https://codereview.chromium.org/104583003/diff/100001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/104583003/diff/100001/src/api.cc#newcode633 src/api.cc:633: Nit: Spurious change?
7 years ago (2013-12-10 11:35:52 UTC) #9
Hannes Payer (out of office)
LGTM, just minor nits. https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/104583003/diff/40001/src/libplatform/default-platform.cc#newcode62 src/libplatform/default-platform.cc:62: ASSERT(thread_pool_size >= 0); On 2013/12/09 ...
7 years ago (2013-12-11 12:07:26 UTC) #10
jochen (gone - plz use gerrit)
all done
7 years ago (2013-12-11 13:17:07 UTC) #11
jochen (gone - plz use gerrit)
7 years ago (2013-12-20 07:53:20 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 manually as r18380 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698