Skip to content

Fix the four bugs filed today instead of fixed: closure linkage across codegen units (#2618), the pid-1 ancestry probe (#2604), a memory-bounded lane pool (#2603), relative migration headers (#2602) - #2620

Merged
ehartford merged 4 commits into
mainfrom
fix-2618
Oct 25, 2026

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

The four bugs I filed today instead of fixing, fixed (Eric: "why do u keep making github issues instead of fixing it").

Battery: seed-driven, posted below when green.

Eric Hartford added 4 commits October 24, 2026 22:00
…ild stripped its external body in every unit but the first

gen_closure added `__closure` with default (external) linkage while the thunks and the environment clone/drop helpers are internal; unit_demote_foreign_definitions (#681) deletes the body of every external function a unit does not own, so a generic instance placed in unit 1 whose body returned a closure linked against an undefined `___closure` — `List[str].sort()` in a compiler module (CiContracts) was the first body to land there. A closure is reached only through the value its enclosing function builds, never by name across units: internal linkage, as the helpers. Fixture behav_codegen_units_closure_in_generic (WITH_CODEGEN_UNITS=8, a generic closure factory, List[str].sort()). CiContracts sorts with List.sort again.
… the driver itself is pid 1, and skipping it left the identity unverified

The walk stopped at pid 1, so a `docker run … src/main build` whose driver is pid 1 reported "no ancestor process resolves to a file" and the seed-driven battery had to run under `sh /leg.sh`. The parent of pid 1 is 0, where the walk stops now.
…r core, two gibibytes a lane, 1..32

build_pool_width took the core count alone; an 18-core container with 7.7 GiB ran 18 lanes of corpus tests and the kernel killed the leg at exit 137 (the fix at the time was WITH_BUILD_JOBS=3 by hand). build_graph_pool_width_for(cores, memory_total) in BuildGraphRuntime holds the rule, with_sysinfo's memory total feeds it, and test/internals/build_pool_width_test pins the cases (the container's 18/7.7 GiB → 3; an unknown total does not bound).
…r the worktree's absolute path (#2602, D50)

`// Generated by: with migrate <abs path>` made two identical promotions differ by machine and directory (the M*LIB test program carried the mlib-lane worktree's scratch path). The header now names the source relative to the migration's input directory, or by its basename for a single file; the contracts basic test forbids the absolute path and checks the relative one.
@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery GREEN on 3df0d2c (wall 421 s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant