Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 17, 2025

Backport of #119797 to release/10.0

/cc @EgorBo

Customer Impact

  • Customer reported
  • Found internally

In certain patterns involving downcasting long to int JIT could fold branches where it was not legal leading to silent codegen bugs. In case of the customer's repro that was an unexpected IndexOutOfBoundsException thrown.

Regression

  • Yes
  • No

It doesn't reproduce on .NET 9.0, but it looks like the actual regression was introduced long time ago and some unrelated change just uncovered it in 10.0.

Testing

Customer's scenario is tested locally and a small test is added

Risk

Low, the change just makes an optimization slightly more conservative

@EgorBo
Copy link
Member

EgorBo commented Sep 17, 2025

PTAL @AndyAyersMS backport to 10.0

@EgorBo EgorBo requested a review from AndyAyersMS September 17, 2025 16:05
@steveisok steveisok added the Servicing-consider Issue for next servicing release review label Sep 23, 2025
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 23, 2025
@rbhanda rbhanda added this to the 10.0.0 milestone Sep 23, 2025
@JulieLeeMSFT JulieLeeMSFT merged commit d8e71a4 into release/10.0 Sep 24, 2025
110 of 113 checks passed
@jkotas jkotas deleted the backport/pr-119797-to-release/10.0 branch September 25, 2025 00:02
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants