Commit 6bf816f
src: limit foreground tasks draining loop
Foreground tasks that repost themselves can force the draining loop
to run indefinitely long without giving other tasks chance to run.
This limits the foreground task draining loop to run only the tasks
that were in the tasks queue at the beginning of the loop.
PR-URL: #19987
Fixes: #19937
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Khaidi Chu <i@2333.moe>1 parent 99e0b91 commit 6bf816fCopy full SHA for 6bf816f
File tree
Expand file treeCollapse file tree
5 files changed
+83
-7
lines changedOpen diff view settings
Filter options
- src
- test/cctest
Expand file treeCollapse file tree
5 files changed
+83
-7
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
961 | 961 | |
962 | 962 | |
963 | 963 | |
| 964 | + |
964 | 965 | |
965 | 966 | |
966 | 967 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
316 | 316 | |
317 | 317 | |
318 | 318 | |
319 | | - |
| 319 | + |
320 | 320 | |
321 | 321 | |
322 | 322 | |
|
Collapse file
+18-4Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
| 98 | + |
99 | 99 | |
100 | 100 | |
101 | 101 | |
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
226 | | - |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
227 | 233 | |
228 | 234 | |
229 | 235 | |
| ||
254 | 260 | |
255 | 261 | |
256 | 262 | |
257 | | - |
258 | | - |
| 263 | + |
| 264 | + |
259 | 265 | |
260 | 266 | |
261 | 267 | |
| ||
348 | 354 | |
349 | 355 | |
350 | 356 | |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
351 | 365 | |
Collapse file
+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
| ||
65 | 66 | |
66 | 67 | |
67 | 68 | |
68 | | - |
| 69 | + |
| 70 | + |
| 71 | + |
69 | 72 | |
70 | 73 | |
71 | 74 | |
| ||
130 | 133 | |
131 | 134 | |
132 | 135 | |
133 | | - |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
134 | 140 | |
135 | 141 | |
136 | 142 | |
|
Collapse file
test/cctest/test_platform.cc
Copy file name to clipboard+55Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
0 commit comments