From 07dfc0e6af8407b5b3d00fa076c35554b1756157 Mon Sep 17 00:00:00 2001 From: Hojun-Cho Date: Sat, 8 Aug 2026 17:12:48 +0900 Subject: [PATCH] wwpackage: drop the indexed-source pointer alias The task #6 fallback landed; handles[k].result copies and &handles[k] arguments compile directly, so the WHY-comment alias is dead. --- internal/wwpackage/package.ww | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/internal/wwpackage/package.ww b/internal/wwpackage/package.ww index e6af03c9..43aa40a2 100644 --- a/internal/wwpackage/package.ww +++ b/internal/wwpackage/package.ww @@ -912,23 +912,18 @@ export fn packagecommand(args: []str) int = { let k: i32 = emitted; for (k < launched) { let g: *pkggroup = &groups[k]; - // Pointer alias: an aggregate copy from - // `handles[k].result` (N_DOT over N_INDEX source) is a - // loud cgen gap in both stages; the deref-base spine is - // wired. Same idiom as wwfixture's collect(). - let hp: *exec.process = &handles[k]; - if (g.state == PKGBUILDING && exec.poll(hp)) { - g.buildres = hp.result; + if (g.state == PKGBUILDING && exec.poll(&handles[k])) { + g.buildres = handles[k].result; if (pkgbuildok(g) && !compileonly) { pkgstartrun(g, filters, timeoutarg, - list, hp); + list, &handles[k]); g.state = PKGRUNNING; } else { g.state = PKGDONE; active -= 1; }; - } else if (g.state == PKGRUNNING && exec.poll(hp)) { - g.runres = hp.result; + } else if (g.state == PKGRUNNING && exec.poll(&handles[k])) { + g.runres = handles[k].result; g.state = PKGDONE; active -= 1; };