Repository navigation
Disable scope info for wasm targets - #129636
Merged
Merged
Conversation
Wasm virtual registers cannot be encoded in ICorDebugInfo, and there is no native debugger to consume scope info. Fixes dotnet#129630. Co-authored-by: Copilot <[email protected]>
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates CoreCLR RyuJIT debug-info option initialization and call-site return-value reporting so that scope info is disabled for WASM targets, avoiding generation of scope/variable location data that cannot be represented in the ICorDebugInfo register encoding.
Changes:
- Disable
opts.compScopeInfounderTARGET_WASMduringCompiler::compInitOptions. - Gate managed return-value reporting emission on
opts.compScopeInfo(in addition toopts.compDbgInfo) to avoid attempting to encode WASM virtual registers into debug scope info.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/coreclr/jit/compiler.cpp | Forces opts.compScopeInfo = false for TARGET_WASM during option initialization. |
| src/coreclr/jit/codegencommon.cpp | Skips emitting managed return-value reporting entries when compScopeInfo is disabled. |
Member
Author
|
@adamperlin PTAL |
adamperlin
approved these changes
Jun 20, 2026
eiriktsarpalis
pushed a commit
that referenced
this pull request
Jul 15, 2026
Wasm virtual registers cannot be encoded in ICorDebugInfo, and there is no native debugger to consume scope info. Disables compScopeInfo for TARGET_WASM and guards return-value collection on the same flag. Fixes #129630. > [!NOTE] > This contribution was generated with the assistance of GitHub Copilot. Co-authored-by: Copilot <[email protected]>
ManickaP
pushed a commit
to ManickaP/runtime
that referenced
this pull request
Jul 22, 2026
Wasm virtual registers cannot be encoded in ICorDebugInfo, and there is no native debugger to consume scope info. Disables compScopeInfo for TARGET_WASM and guards return-value collection on the same flag. Fixes dotnet#129630. > [!NOTE] > This contribution was generated with the assistance of GitHub Copilot. Co-authored-by: Copilot <[email protected]>
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.
Wasm virtual registers cannot be encoded in ICorDebugInfo, and there is no native debugger to consume scope info. Disables compScopeInfo for TARGET_WASM and guards return-value collection on the same flag.
Fixes #129630.
Note
This contribution was generated with the assistance of GitHub Copilot.