Repository navigation
heap: the mover's OLD mark gets a bit of its own, the first step to moving with the boot heap frozen - #1072
Merged
Conversation
…eze's FROZEN ROBIGO_GC_MOVE=young:N marked the objects a moving collection copied with the header flag the boot heap's freeze uses as FROZEN, so the two could never run together: the moving modes ran with the freeze off and under M1's loader. OLD is now bit 15 of the header's extra word, which every type's map leaves free once env's ESCAPED moves to bit 14. An allocation writes the whole header, so a slot a dead copy leaves starts young again; forward_to clears an old copy's extra as it clears its flags. The refusal to run the mover with the freeze stays: lifting it is the next PR (the council's ruling, PR 1 of 3).
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Test delta
120 changed lines outside tests, 27 in tests: |
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 5 selected item(s). |
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.
M1's loader can't be deleted while three checks still need it: rt-ci's young:16 step and the nightly's
--full-moveand--freeze-check. The moving collector can't run with the boot heap's freeze on, because its "already moved" mark (OLD, forROBIGO_GC_MOVE=young:N) is the header flag the freeze uses as FROZEN. So the moving modes run with the freeze off. Under the rdb boot that means marking and moving 42k boot objects at every collection, which is too slow, so those steps run under M1.The council ruled (Fable 5.2, Opus 5.5, Astra 6.2, Sol 6.2; Gemini 4 Neon was out of quota on both routes): make the mover work with the frozen heap now, in three PRs. This is the first. OLD moves to a bit of its own; the refusal to run the mover with the freeze stays until PR 2.
layout/defs.rs extra::MOVED = bit 15 of the header's extra word, in TYPE_BLIND (every type map's disjointness assert covers it); env's ESCAPED moves 15 -> 14, free in env's map gc/mover.rs OLD = extra::MOVED (was flags::FROZEN); set_old(); forward_to zeroes an old copy's extra gc/freeze.rs stopping_the_mover_clears_its_old_bit: checks MOVED, and that FROZEN is untouched gc.rs a comment tests/heap.rs a_fresh_object_in_a_dead_copys_slot_is_youngH's appendix suggested a side bitmap per block, because the flags byte is full. The extra word has room once ESCAPED moves, and it avoids the side bitmap's costs:
size_of::<Block>() == DATA_OFF; the perf gate).mark_young's test stays one header load.Proof:
cargo test -p robigo-heappasses, under the dev and quick profiles (five repeated runs of the heap suite).scripts/rt-ci.py(32.3 min; young:16 step 7.3 min),--shard debug-assertions(4.8 of 5 min),scripts/lint-job.sh(11/11).Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved
Claude Opus 5.5 on behalf of Max