Merge train: #9618 (idle-time old-gen reclaim) - #9627
Merged
Conversation
This was referenced Sep 3, 2026
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.
Lands #9618 (idle-time old-generation reclaim, #9589):
js_wait_for_eventhands the collector the moment before it parks — an open budgeted cycle is finished there, and after a 3 s quiet window an owed full cycle runs in wake-checked 4 ms slices with rate limiting and exponential backoff on unproductive fulls. The reclaim tail also purges mimalloc so RSS follows reclaimed pages down.Audited against the GC knob kill-policy: the
PERRY_GC_IDLE_RECLAIM=0OFF state has an asserting arm ("must leave the idle heap untouched"), and the ON arm asserts subject liveness (idle_reclaim_completions == Some(1)) with a negative control on the parser — so it is not a gate that cannot fail.Validation:
run_lint_gates.shall 62 gates pass; release build green; RUST_TEST_THREADS=1 perry-runtime 3046/0;issue_9589_idle_reclaim_heap_descends2/2.#9620 was held out of this train for a separate rooting question (reported on that PR).
Rebase-merge preserving authorship.