authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-10-17 16:40:09+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-10-19 18:30:34+01:00
log0b4d75a0acd5311edf4f027d77d346bcfdc9b977
tree2082614b58aad8b1bfc9593549cabe016023a7ba
parent77340b28c806e30c3d5759abe6883fc35eaed60c
signature Commit is signed but in an unrecognized format.

link.Queue: prelink could create idle tasks


1 files changed, 1 insertions(+), 0 deletions(-)

src/link/Queue.zig+1
...@@ -196,6 +196,7 @@ fn runLinkTasks(q: *Queue, comp: *Compilation) Io.Cancelable!void {...@@ -196,6 +196,7 @@ fn runLinkTasks(q: *Queue, comp: *Compilation) Io.Cancelable!void {
196 };196 };
197 }197 }
198198
199 have_idle_tasks = true;
199 zcu_tasks: while (true) {200 zcu_tasks: while (true) {
200 var task_buf: [128]ZcuTask = undefined;201 var task_buf: [128]ZcuTask = undefined;
201 const limit: usize = if (have_idle_tasks) 0 else 1;202 const limit: usize = if (have_idle_tasks) 0 else 1;