Repository navigation
heap: the freeze runs under the moving collector, so rt-ci can move objects under the rdb boot - #1074
Merged
Merged
Conversation
…ve with the boot heap frozen The moving modes (ROBIGO_GC_MOVE=1, young:N) ran with the freeze off, so under the rdb boot they marked and moved base and the compiler at every collection, and their rt-ci and nightly steps needed M1's loader. Now (PR 2 of the council's three): - freeze_enabled is freeze_on; a mover still cannot start after the boot boundary. - ROBIGO_GC_FREEZE_CHECK under a mover is refused (Core::new and the setters, validated before anything changes). - a frozen object handed to C under the mover is marked SEEN_BY_C, so a thaw cannot move it under C; a thawed object is young (MOVED cleared). - forward_heap fails the check when a frozen object outside the log names an object the collection moved (I1). The argument, measurements and tests: docs/ledger/g3/2026-11-29-h-mover- freeze.md. Tests that are not about the composed modes stop the environment's mover (freeze_core) or turn the freeze off (the mover-only helpers), as rt-ci's crates' steps run them under both.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Test delta
468 changed lines outside tests, 42 in tests: |
|
✅ OpenCodeReview: Review partially complete: 0 finding(s); 6 of 8 selected item(s) failed. |
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.
The moving collector's checks (
ROBIGO_GC_MOVE=1andyoung:N) ran with the boot heap's freeze off. Under the rdb boot that meant marking and moving base and the compiler, 42k objects, at every collection. That was too slow, so rt-ci's young:16 step and the nightly's--full-moveran under M1's loader, and M1 can't be deleted while they do. This is PR 2 of the council's three (after #1072): the freeze now runs under the movers.gc/freeze.rs freeze_enabled = freeze_on (was && !gc_move); refuse_check_under_mover; make_mortal clears MOVED; module docs; tests (freeze_core, composed(), four new) gc/mover.rs forward_heap's I1 check (UnloggedFrozen); the refusal validated before the setters change anything gc.rs Core::new refuses ROBIGO_GC_FREEZE_CHECK + ROBIGO_GC_MOVE layout/access.rs mark_seen_by_c marks a FROZEN object too (a thaw may make it ordinary under C) api.c seen(): the same tests freeze_check_env.rs (new binary); heap.rs's mover helpers and an rtcore alloc test turn the freeze off docs/ledger/g3/2026-11-29-h-mover-freeze.md the argument, what is lost, measurementsforward_heapnow fails the check if a frozen object outside the log names a moved object.tailcall-frames.Runder young:16: 64 s (M1: 71 s). Under=1: 446 s (M1: 267 s), within the nightly's 1,200 s allowance.Proof:
cargo test -p robigo-heap -p robigo-rtcorepasses plain and under rt-ci's three collector environments: the mover (=1, freeze off), young:16, and the GC stats check with the freeze check.scripts/rt-ci.py(42.6 min),--shard debug-assertions(4.8 of 5 min),scripts/lint-job.sh(11/11).Reviewed with sol-loop: 4 rounds with gpt-6.2-sol. Sol verdict: approved
Claude Opus 5.5 on behalf of Max