Commit 2114c5d
committed
Implement
This commit adds support to Cargo's internal `JobQueue` to execute
pipelined rlib compilations actually in a pipelined fashion. This
internally invovled some refactoring to ensure we juggled the right jobs
into the right places, ensuring that as soon as an rmeta file is produce
we can start subsequent compilations but still synchronize with the
finished result of a `Build` unit.
Internally this continues to still not actually pipeline anything in the
sense that rustc doesn't support pipelining, but it's in theory all the
groundwork necessary to read a signal from rustc that a metadata file is
ready to go and then plumb that into Cargo's job scheduler.JobQueue support for pipelining1 parent 1caae51 commit 2114c5d
File tree
8 files changed
+285
-44
lines changed- src/cargo
- core
- compiler
- context
- util
- tests/testsuite
8 files changed
+285
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
318 | 338 | | |
319 | 339 | | |
320 | 340 | | |
| |||
790 | 810 | | |
791 | 811 | | |
792 | 812 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
798 | 821 | | |
799 | 822 | | |
800 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
135 | 148 | | |
136 | 149 | | |
137 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | | - | |
| 1454 | + | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | 1457 | | |
1458 | | - | |
| 1458 | + | |
1459 | 1459 | | |
1460 | 1460 | | |
1461 | 1461 | | |
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | | - | |
| 1470 | + | |
1471 | 1471 | | |
1472 | | - | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1473 | 1475 | | |
1474 | 1476 | | |
1475 | 1477 | | |
1476 | 1478 | | |
1477 | 1479 | | |
1478 | 1480 | | |
1479 | 1481 | | |
1480 | | - | |
| 1482 | + | |
1481 | 1483 | | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | | - | |
| 1486 | + | |
1485 | 1487 | | |
1486 | 1488 | | |
1487 | 1489 | | |
| |||
1493 | 1495 | | |
1494 | 1496 | | |
1495 | 1497 | | |
1496 | | - | |
| 1498 | + | |
1497 | 1499 | | |
1498 | 1500 | | |
1499 | | - | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1500 | 1504 | | |
1501 | 1505 | | |
1502 | 1506 | | |
| |||
1921 | 1925 | | |
1922 | 1926 | | |
1923 | 1927 | | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | 1928 | | |
1928 | 1929 | | |
1929 | 1930 | | |
| |||
1958 | 1959 | | |
1959 | 1960 | | |
1960 | 1961 | | |
1961 | | - | |
| 1962 | + | |
1962 | 1963 | | |
1963 | 1964 | | |
1964 | 1965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
0 commit comments