Repository navigation
Make GcScanRoots a no-op on native AOT/WASM - #135767
Merged
MichalStrehovsky merged 1 commit intoOct 14, 2026
Merged
Conversation
`t_pShadowStackTop`/`t_pShadowStackBottom` doesn't link, these two are from the NativeAOT-LLVM prototype from CoreRT times. Co-authored-by: Copilot <[email protected]> Copilot-Session: c78266f3-08e3-4918-b2e5-9fe0ddf2ca17
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
jkotas
approved these changes
Oct 14, 2026
This was referenced Oct 14, 2026
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Part of a series of pull requests that enable compiling, linking, and running a
Console.WriteLinehello world on WASI/native AOT.Summary
Remove
GcScanWasmShadowStackand its undefinedt_pShadowStackTop/t_pShadowStackBottomglobals, inherited from the older NativeAOT-LLVM prototype. That prototype's shadow-stack representation is not the current direct RyuJIT Wasm stack ABI.Keep the existing
CrossThreadUnhijack()bookkeeping, but perform theStackFrameIteratorwalk only on non-Wasm targets.This deliberately leaves managed stack-root enumeration unimplemented on Wasm. It removes obsolete linking dependencies for bringup; it is not a GC correctness fix or production-ready stack-scanning support.
Validation
.\build.cmd clr.nativeaotruntime -rc Checked -os wasi -arch wasm- passed.These results are from the combined local bringup tree, including prerequisite NativeAOT/Wasm enablement, not a fresh build of this isolated main-based branch. GC-pressure and root-survival behavior were not validated.
Note
This PR description was generated by GitHub Copilot.