Skip to content

[Wasm RyuJIT] Add missing TYP_REF check#123019

Merged
kg merged 1 commit intodotnet:mainfrom
kg:wasm-missing-ref-check
Jan 9, 2026
Merged

[Wasm RyuJIT] Add missing TYP_REF check#123019
kg merged 1 commit intodotnet:mainfrom
kg:wasm-missing-ref-check

Conversation

@kg
Copy link
Member

@kg kg commented Jan 9, 2026

This fixes a bit over a hundred superPMI failures.

Should we centralize this somewhere else? This feels like it's probably a decent place for it.

Copilot AI review requested due to automatic review settings January 9, 2026 00:28
@kg kg added arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Jan 9, 2026
@dotnet-policy-service
Copy link
Contributor

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

Copy link
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 fixes a missing type check in the WebAssembly JIT code generator. The PackOperAndType function was only normalizing TYP_BYREF (managed pointer) types to TYP_I_IMPL (native integer type), but it should also normalize TYP_REF (object reference) types the same way. This fix resolves over 100 superPMI failures.

Key Changes

  • Added TYP_REF check alongside existing TYP_BYREF check in the PackOperAndType function

@kg
Copy link
Member Author

kg commented Jan 9, 2026

/ba-g known unrelated lane flakes

@kg kg merged commit 35154b4 into dotnet:main Jan 9, 2026
128 of 133 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture 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.

3 participants