-
-
Notifications
You must be signed in to change notification settings - Fork 159
fix(gc): list the five buffer/typed-array constructors as poll-capable #8129
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
Closed
+21
−0
Closed
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ### Fixed | ||
|
|
||
| - **`gc-root-dominance` has been red on `main` since 2026-08-14, and the reason was that the gate was silently not checking part of what it claims to.** Its own `--audit-poll-reach` self-audit exits 2 naming five exported symbols that match `ALLOC_RE` (their result is a heap value the checker must track) *and* call something already in `POLL_CAPABLE_RUNTIME`, while not being listed there themselves: `js_buffer_alloc_fill_value`, `js_buffer_from_array`, `js_buffer_from_value`, `js_typed_array_new_from_array`, `js_uint8array_new`. | ||
|
|
||
| The consequence is the #7616 shape: a window whose only collection point is one of those five classified `MOVING: no`, so **every `--moving-only` arm — which is every gated arm, in all four modes — dropped it**. Those windows were never checked, and the gate could not have reported a rooting bug in them. | ||
|
|
||
| All five are real `pub extern "C"` exports in the buffer / typed-array construction paths, and each reaches a JS-reentrant helper (`js_array_get_f64` and `js_typed_array_get` can both run a user getter). Adding them makes the checker **stricter**, not looser: it now classifies those windows as moving and audits them. | ||
|
|
||
| Verified by A/B with real exit codes rather than a pipeline's: `--audit-poll-reach` exits **2** before and **0** after, printing `no ALLOC_RE symbol reaches a poll-capable one unlisted`. `--audit-alloc-re`, `--audit-poll-capable`, `--audit-immovable-sources` and `--self-test` all still exit 0. | ||
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
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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Include the affected implementation path.
The fragment explains the root cause and validation results, but it does not name
scripts/gc_root_dominance_check.py. Add that path so the release note identifies the implementation changed by this PR.Based on learnings, changelog fragments under
changelog.d/should include a long-form root-cause explanation, affected file paths, and validation notes.🤖 Prompt for AI Agents
Source: Learnings