Commit 85b353e
waf/backend: limit parallel link tasks with MAX_LINK_TASKS.
Linking is memory-intensive, so on machines with many CPUs, running too
many link tasks in parallel can exhaust memory and disk I/O. Use waf's
TaskSemaphore to cap link task parallelism to 8 by default, configurable
via the MAX_LINK_TASKS environment variable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I401dbbc18e2b76e7796aec77b4b7f6fe495e0131
Priv-Id: ae987beb7863683fd5cd5c7acbcc4152fe84d0271 parent b8025f1 commit 85b353e
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
269 | 277 | | |
270 | 278 | | |
271 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
2055 | 2055 | | |
2056 | 2056 | | |
2057 | 2057 | | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2058 | 2065 | | |
2059 | 2066 | | |
2060 | 2067 | | |
| |||
0 commit comments