Repository navigation
Move the runtime overlay to Crystal 1.22.3 - #4
Conversation
The runtime overlay's gc/boehm.cr, fiber.cr and crystal/system/thread.cr were copies of the Crystal 1.21 runtime (crimson-knight/crystal 9c1e8ec6). Crystal 1.22.3 calls GC.syscall from crystal/system/unix/pthread_condition_variable.cr, which the 1.21 copy of gc/boehm.cr does not define, so specs built against an installed 1.22.3 standard library stopped with "undefined method 'syscall' for GC:Module". Each overlay file is now the v1.22.3-incremental-1 source (commit 8ccce497524ef3e35fdc48c487854ab0743b0541) with exactly the changes the 1.21 overlay made on top of 9c1e8ec6: the allocation tally records in GC.malloc, GC.malloc_atomic and GC.realloc (placed after 1.22.3's out-of-memory checks), the Fiber.inactive live-list hook, the main-fiber thread_started hook, the fiber/allocation_tally require, and the Thread#current_fiber= switch-out hook. fiber/allocation_tally.cr is unchanged. gc/boehm.cr stops at compile time with a message naming the compiler version when a compiler older than 1.22.3 reads it; commit 58c20ac remains the Crystal 1.21 overlay. shard.yml declares crystal >= 1.22.3. The manifest's base commit, overlay hashes, package pins, README and a new CHANGELOG record the move.
|
Grant source package controls (macos-26) is red on main too, for a runner reason. The job stops before reading anything this PR changes: the macos-26 image now ships Python 3.15.2, which has no reviewed entry in Docs corpus and portable fixtures (143 runs) pass. |
|
Installed 1.22.3 compiler, m4-mini-02 (macOS 27.2.1) through Controls on the same keg: the 58c20ac overlay reproduces |
Formula CI stopped at "Exercise public SDK with the ordinary installed compiler" on both runners: memory_budget 58c20acf copies its Crystal 1.21 runtime overlay over the installed standard library, and 1.22.3's crystal/system/unix/pthread_condition_variable.cr calls GC.syscall, which that overlay's gc/boehm.cr does not define. amberframework/memory_budget#4 moved the overlay's gc/boehm.cr, fiber.cr and crystal/system/thread.cr to crimson-knight/crystal v1.22.3-incremental-1 with the same allocation tally hooks, and added CHANGELOG.md. The lock's sdk block now pins merge commit 1bcad5894e50c337cce8d1f6a98af0eeeb33e1f6: codeload archive 8,372,074 bytes, sha256 f25334e5ee275090ef009ba565eb0c973ddb4e2df8a12f194cc492226acda4c4, 141 files, each checked against the commit's Git tree (mode and blob). The installed bundle stays at 68 payload files. Lock, CPU diagnostic LOCK_SHA256 and Formula CI digests re-chained. The formula and the lock's alpha block are unchanged.
Formula CI stopped at "Exercise public SDK with the ordinary installed compiler" on both runners: memory_budget 58c20acf copies its Crystal 1.21 runtime overlay over the installed standard library, and 1.22.3's crystal/system/unix/pthread_condition_variable.cr calls GC.syscall, which that overlay's gc/boehm.cr does not define. amberframework/memory_budget#4 moved the overlay's gc/boehm.cr, fiber.cr and crystal/system/thread.cr to crimson-knight/crystal v1.22.3-incremental-1 with the same allocation tally hooks, and added CHANGELOG.md. The lock's sdk block now pins merge commit 1bcad5894e50c337cce8d1f6a98af0eeeb33e1f6: codeload archive 8,372,074 bytes, sha256 f25334e5ee275090ef009ba565eb0c973ddb4e2df8a12f194cc492226acda4c4, 141 files, each checked against the commit's Git tree (mode and blob). The installed bundle stays at 68 payload files. Lock, CPU diagnostic LOCK_SHA256 and Formula CI digests re-chained. The formula and the lock's alpha block are unchanged.
The agent-crystal tap's move to 1.22.3-incremental-1 (crimson-knight/homebrew-agent-crystal#23) fails Formula CI at the public SDK step: this overlay's
gc/boehm.cris the Crystal 1.21 copy, and 1.22.3'scrystal/system/unix/pthread_condition_variable.crcallsGC.syscall, which that copy does not define (undefined method 'syscall' for GC:Module).What changed
runtime_overlay/gc/boehm.cr,fiber.crandcrystal/system/thread.crare now crimson-knight/crystalv1.22.3-incremental-1(commit8ccce497) plus exactly the changes the 1.21 overlay made on top of its base9c1e8ec6:GC.malloc,GC.malloc_atomic,GC.realloc: record intoFiber::AllocationTallyafter 1.22.3's out-of-memory checks.fiber.cr: thefiber/allocation_tallyrequire andHOOK_LAYER, theFiber.inactivelive-list hook, the main-fiberthread_startedhook.crystal/system/thread.cr: thecurrent_fiber=switch-out hook.fiber/allocation_tally.cris unchanged.gc/boehm.crstops at compile time with a message naming the compiler version when a compiler older than 1.22.3 reads it. Commit58c20acfstays the Crystal 1.21 overlay (the tap's 1.21.0-incremental-10 lock pins it).runtime_overlay/manifest.jsonbase commit and hashes,PACKAGE_PINS.json, README,shard.yml(crystal: ">= 1.22.3, < 2.0.0"), and a newCHANGELOG.md.The memory_budget-only diffs (overlay vs
9c1e8ec6) were isolated first; overlay vs stock 1.21.0 also carries the fork's own WASM changes, whichv1.22.3-incremental-1already has.Checks
ruby -Itestsuite 143 runs, 0 failures; docs corpus verify and controls pass.