Commit 0d0c57f
src: override v8 thread defaults using cli options
Based on the conversation in #4243 this implements a way to increase
and decrease the size of the thread pool used in v8.
Currently v8 restricts the thread pool size to `kMaxThreadPoolSize`
which at this commit is (4). So it is only possible to
decrease the thread pool size at the time of this commit. However with
changes upstream this could change at a later date.
If set to 0 then v8 would choose an appropriate size of the thread pool
based on the number of online processors.
PR-URL: #4344
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent aebe624 commit 0d0c57f
2 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
118 | | - | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | | - | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
3316 | 3317 | | |
3317 | 3318 | | |
3318 | 3319 | | |
| 3320 | + | |
3319 | 3321 | | |
3320 | 3322 | | |
3321 | 3323 | | |
| |||
3459 | 3461 | | |
3460 | 3462 | | |
3461 | 3463 | | |
| 3464 | + | |
| 3465 | + | |
3462 | 3466 | | |
3463 | 3467 | | |
3464 | 3468 | | |
| |||
4266 | 4270 | | |
4267 | 4271 | | |
4268 | 4272 | | |
4269 | | - | |
4270 | | - | |
| 4273 | + | |
4271 | 4274 | | |
4272 | 4275 | | |
4273 | 4276 | | |
| |||
0 commit comments