Skip to content

[release/10.0] Fix assertions generated by optCreateJumpTableImpliedAssertions#127003

Open
github-actions[bot] wants to merge 1 commit intorelease/10.0from
backport/pr-123240-to-release/10.0
Open

[release/10.0] Fix assertions generated by optCreateJumpTableImpliedAssertions#127003
github-actions[bot] wants to merge 1 commit intorelease/10.0from
backport/pr-123240-to-release/10.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 16, 2026

Backport of #123240 to release/10.0

/cc @EgorBo

Customer Impact

  • Customer reported
  • Found internally

The JIT compiler could make invalid assumptions regarding the default: case in switch statements concerning the possible ranges of the checked variable. This could lead to incorrect constant folding and branch removal. The original bug reproduction is available here: #122254

Regression

  • Yes
  • No

Regressed via #113998 JIT optimization.

Testing

A test is added.

Risk

Low

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

@EgorBo
Copy link
Copy Markdown
Member

EgorBo commented Apr 16, 2026

PTAL @jakobbotsch This fell off my radar. Backporting the fix from #123240

@EgorBo EgorBo requested a review from jakobbotsch April 16, 2026 13:44
@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 Apr 16, 2026
@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.

@snakefoot
Copy link
Copy Markdown
Contributor

Will this be included in milestone 10.0.7 ?

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.

3 participants