You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: (bug) fgMorphCommutative keeps GTF_ICON_CLASS_HDL on folded "H + C" constant (bogus class handle) #134475
After (x + H) + 8 is folded into x + (H + 8), the folded constant is still flagged as a class handle. With DOTNET_JitDisasm=Test, a Checked runtime then asserts in the VM.
Release runtimes (.NET 8 through 11 RC2) don't print a handle comment here, so they aren't affected. Checked builds of older versions weren't checked.
Notes
fgMorphCommutative updates cns1 in place (value, VN and field sequence) but keeps GTF_ICON_CLASS_HDL. The emitter then passes MT+8 to the VM as a class handle. The generated code itself is correct. Possible fix: bail when either constant is IsIconHandle().
Activity
dotnet-policy-service commentedon Sep 22, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JIT: retain complete metadata of reassociated folded constants (#135461)