Skip to content

[Wasm] Fix FP-based stack slot lookup#128958

Merged
kg merged 1 commit into
dotnet:mainfrom
kg:wasm-gcissues-followup-1
Jun 4, 2026
Merged

[Wasm] Fix FP-based stack slot lookup#128958
kg merged 1 commit into
dotnet:mainfrom
kg:wasm-gcissues-followup-1

Conversation

@kg

@kg kg commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Depends on #128860 to matter

@kg kg added the arch-wasm WebAssembly architecture label Jun 3, 2026
Copilot AI review requested due to automatic review settings June 3, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CoreCLR GC info decoder’s stack-slot address computation for WebAssembly so that GC_FRAMEREG_REL stack slots can be resolved even when the encoded “stack base register” ends up being REG_NA on wasm.

Changes:

  • Add a wasm-only code path in TGcInfoDecoder<...>::GetStackSlot that derives the frame pointer from the current stack pointer and uses it to compute the stack slot address.
  • Add a wasm-only forward declaration for GetWasmFramePointerFromStackPointer so gcinfodecoder.cpp can call the helper implemented in vm/wasm/helpers.cpp.

Comment thread src/coreclr/vm/gcinfodecoder.cpp
Comment thread src/coreclr/vm/gcinfodecoder.cpp
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

@kg kg marked this pull request as ready for review June 3, 2026 22:00
@kg

kg commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

/ba-g OS X deadletter and known issue around analyzers on Wasm-only change

@kg kg merged commit 1c04596 into dotnet:main Jun 4, 2026
120 of 123 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-VM-coreclr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants