Checkpoint GC architecture progress toward #1090 - #1235
Merged
Conversation
andrewtdiz
force-pushed
the
codex/gc-1090-checkpoint
branch
from
May 21, 2026 03:14
a80998d to
6294f51
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Checkpoint toward #1090: make Perry's minor GC structurally cheaper and safer to reason about.
This PR collects the current GC architecture work into a reviewable unit:
This is not intended to close #1090. It is a strong checkpoint: default-safe copied-minor behavior, better evidence, and a maintainable module layout for the remaining root/barrier/layout/old-gen work.
Why
#1090's target invariant is:
This PR moves Perry closer to that invariant by making copied-minor behavior observable and verified, reducing fallback causes, and giving the collector code clearer ownership boundaries before the next architecture work.
Evidence
Verified locally on this branch:
cargo fmt --checkcargo test -p perry-runtime --release json_tape-> 6 passedcargo build --release -p perrygit diff --checkPERRY_GC_EVIDENCE_DIR=/tmp/perry-gc-pr-checkpoint-evidence scripts/run_memory_stability_tests.sh-> 58 PASS / 0 FAILMemory-stability highlights:
top_remaining_reason=none07_object_create: 3 ms / 6 MB12_binary_trees: 4 ms / 6 MBbench_gc_pressure: 23 ms / 26 MBEvidence artifacts from the local run were written to:
Deliberately not included
The remaining #1090 production-grade work is still ahead: