-
Notifications
You must be signed in to change notification settings - Fork 5.1k
GC controller: idle collections at 10 s, 2 min and 10 min, nothing paged out; the last drops re-decodable bytecode #43174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Maintainers get a red "Source lints" GitHub check on this PR: test/internal/source-lints/vm-thread-door.test.ts fails for src/jsc/GarbageCollectionController.rs. The diff deletes the file's only
std::thread::Builder::new()(the "idle page-out" spawn) but test/internal/source-lints/vm-thread-door.inventory.json:19-21 still records"thread spawn": 1for it. Fix: regenerate the inventory in this PR so the frozen thread-crossing list matches the sources, e.g.bun ./test/internal/source-lints/vm-thread-door.test.ts --update, which drops the GarbageCollectionController.rs entry.Extended reasoning...
The lint scans every tracked src/jsc/**/*.rs file with the pattern
\bthread::(?:Builder::new\s*\(|spawn\s*\()(vm-thread-door.test.ts:51) and compares the per-file result with the committed inventory (vm-thread-door.test.ts:96-113). On the base commit GarbageCollectionController.rs:146 containedstd::thread::Builder::new(), so the inventory entry"src/jsc/GarbageCollectionController.rs": { "thread spawn": 1 }was correct. The PR removes that spawn together withgraph.page_out(); the current file has nothread::occurrence at all (grep confirms), andgit diff fd8422ce HEAD --stat -- test/internalshows the inventory was not touched. The test iterates the union of inventory keys and found keys (line 99), so for this file expected is{"thread spawn":1}and actual is{};Bun.deepEqualsis false and the test throws "src/jsc/GarbageCollectionController.rs: thread-crossing inventory changed" (lines 103-111). .github/workflows/source-lints.yml runsbun test test/internal/source-lints/on every pull_request that touchessrc/**/*.rs(lines 37-39, 87), which…Verification: normal — triggering condition: any push of this PR (the
source-lintsworkflow runs onpull_requestforsrc/**/*.rs, .github/workflows/source-lints.yml:38-39, stepbun test test/internal/source-lints/at line 87). Mechanism verified: the diff removes the onlystd::thread::Builder::new()in src/jsc/GarbageCollectionController.rs (diff line `- let _ =… | normal. Triggering…