Skip to content

[Wasm RyuJit] Track stackifier temps by actual jit type#126215

Merged
AndyAyersMS merged 1 commit intodotnet:mainfrom
AndyAyersMS:WasmStackifierTempTypeFix
Mar 27, 2026
Merged

[Wasm RyuJit] Track stackifier temps by actual jit type#126215
AndyAyersMS merged 1 commit intodotnet:mainfrom
AndyAyersMS:WasmStackifierTempTypeFix

Conversation

@AndyAyersMS
Copy link
Copy Markdown
Member

Mainly so we can distinguish GC types from non-GC types.

Fixes an issue in #125756

Mainly so we can distinguish GC types from non-GC types.

Fixes an issue in dotnet#125756
Copilot AI review requested due to automatic review settings March 27, 2026 18:13
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 27, 2026
@AndyAyersMS
Copy link
Copy Markdown
Member Author

@dotnet/jit-contrib PTAL

Fixes #125756 (comment)

@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 WASM JIT stackifier’s temporary-local reuse bookkeeping to key temps by the actual JIT var_types (via genActualType) rather than by the coarser WasmValueType, enabling GC-tracked types (e.g., TYP_REF / TYP_BYREF) to be distinguished from non-GC types while reusing temps.

Changes:

  • Change stackifier temp pools from WasmValueType::Count buckets to TYP_COUNT buckets.
  • Index temp reuse/free lists by genActualType(...) instead of ActualTypeToWasmValueType(...).

@AndyAyersMS AndyAyersMS merged commit b9e773c into dotnet:main Mar 27, 2026
139 of 143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants