Skip to content

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

Merged
JulieLeeMSFT merged 1 commit into
release/10.0from
backport/pr-123240-to-release/10.0
May 18, 2026
Merged

[release/10.0] Fix assertions generated by optCreateJumpTableImpliedAssertions#127003
JulieLeeMSFT merged 1 commit into
release/10.0from
backport/pr-123240-to-release/10.0

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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

EgorBo commented Apr 16, 2026

Copy link
Copy Markdown
Member

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 ?

@svick

svick commented May 15, 2026

Copy link
Copy Markdown
Member

@EgorBo @jakobbotsch Note that according to the calendar, today is code complete day for the June release of .NET 10. So you might want to get this PR merged today. Sorry for the last minute notification.

@EgorBo

EgorBo commented May 15, 2026

Copy link
Copy Markdown
Member

/ba-g dns failure fixed long time ago

@JulieLeeMSFT JulieLeeMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@JulieLeeMSFT JulieLeeMSFT added the Servicing-consider Issue for next servicing release review label May 15, 2026
@JulieLeeMSFT JulieLeeMSFT added this to the 10.0.x milestone May 15, 2026
@JulieLeeMSFT JulieLeeMSFT added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels May 18, 2026
@JulieLeeMSFT JulieLeeMSFT merged commit 0c86592 into release/10.0 May 18, 2026
120 of 124 checks passed
@JulieLeeMSFT JulieLeeMSFT deleted the backport/pr-123240-to-release/10.0 branch May 18, 2026 18:10
@snakefoot

Copy link
Copy Markdown
Contributor

Guess it should be assigned the upcoming milestone 10.0.9 ?

@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants