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) UTF16 string comparison expansion reorders receiver null check ahead of earlier side effects #133966
The importer expansion for short UTF16 string comparisons can append the unrolled comparison before earlier side-effecting expressions still on the evaluation stack, causing the receiver null check to throw first.
impUtf16StringComparison stores the string temp and unrolled comparison with CHECK_SPILL_NONE, so prior stack entries are not spilled before the receiver dereference is appended.
The same pattern exists in impUtf16SpanComparison; a long literal that skips the unrolled expansion preserves the expected exception order.
Activity
dotnet-policy-service commentedon Sep 15, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JIT: preserve side effect ordering when unrolling UTF16 comparisons (d…
EgorBo commentedon Sep 18, 2026
Affected SDK versions:
JIT: preserve side effect ordering when unrolling UTF16 comparisons (d…