Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/9.0-rc1] Fix Type System Equivalence Checks #106666

Closed

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 19, 2024

Backport of #106498 to release/9.0-rc1

/cc @steveisok @ivdiazsa

Customer Impact

  • Customer reported
  • Found internally

A customer found a considerable slowdown in their WinForms App when enabling ReadyToRun, as described on issue #96242. Upon investigation, we found that certain methods that were supposed to be precompiled were getting ignored and being deferred to the JIT. This was caused by a new feature added in .NET 8 to add support for type equivalence checks under certain scenarios. However, these checks were interfering in use cases where they were not needed, like our customer's app in this case.

Regression

  • Yes
  • No

Pull Request: #87899

Testing

Crossgen2 threw an error only viewable through verbose output but did not crash. Tested the fix manually for multiple scenarios ensuring that said error was no longer present. The resulting R2R image also had a larger size, which confirms the method was successfully compiled, as opposed to before implementing the fix.

Risk

Low. This fix corrects an erroneous behavior that could go unnoticed. At worst, with the fix everything will look the same.

@carlossanlop
Copy link
Member

Do we have Tactics approval on this @steveisok @ivdiazsa ?

@steveisok
Copy link
Member

Do we have Tactics approval on this @steveisok @ivdiazsa ?

Yeah, but we haven't formed the request yet.

@carlossanlop
Copy link
Member

Alright. Ping me when ready.

@carlossanlop
Copy link
Member

From the Servicing chat, if you can fill out the template and add the servicing-consider label, this PR can be discussed in Tactics today.

@carlossanlop carlossanlop added the Servicing-consider Issue for next servicing release review label Aug 20, 2024
@jeffschwMSFT jeffschwMSFT removed the Servicing-consider Issue for next servicing release review label Aug 20, 2024
@carlossanlop
Copy link
Member

From Tactics: Let's retarget this PR to release/9.0.

Either that, or you can close this PR, and run the command again in the original PR but targeting the RC2 branch: /backport to release/9.0 (this would be my preferred option, less mess).

@steveisok @ivdiazsa

@ivdiazsa
Copy link
Member

ivdiazsa commented Aug 20, 2024

From Tactics: Let's retarget this PR to release/9.0.

Either that, or you can close this PR, and run the command again in the original PR but targeting the RC2 branch: /backport to release/9.0 (this would be my preferred option, less mess).

@steveisok @ivdiazsa

I also think making a new PR when the RC2 branch becomes available is the better option. Closing this PR and will be on the lookout for the RC2 branch. Thanks @carlossanlop.

@ivdiazsa ivdiazsa closed this Aug 20, 2024
@ivdiazsa ivdiazsa deleted the backport/pr-106498-to-release/9.0-rc1 branch August 20, 2024 17:57
@carlossanlop
Copy link
Member

I also think making a new PR when the RC2 branch becomes available

The release/9.0 branch is currently the RC2 branch. Please send the backport now. There's no point on waiting after the snap, as it would delay the builds.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants