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

Work around issue #102868 #102982

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

MichalStrehovsky
Copy link
Member

The relaxation of type layout check in #102810 exposed a bug in the type layout algorithm that doesn't correctly handle doing type layout in this situation (it doesn't match what CoreCLR VM computes). This restores the old behavior for ReadyToRun that just throws on this. The compiler will then stop precompiling the method and fall back to runtime JIT.

Works around #102868 (the bug still exists, this is a valid situation that we should be able to precompile, we just won't).

@steveisok who would be the best to review this crossgen change?

The relaxation of type layout check in dotnet#102810 exposed a bug in the type layout algorithm that doesn't correctly handle doing type layout in this situation (it doesn't match what CoreCLR VM computes). This restores the old behavior for ReadyToRun that just throws on this. The compiler will then stop precompiling the method and fall back to runtime JIT.

Works around dotnet#102868 (the bug still exists, this is a valid situation that we should be able to precompile, we just won't).
@MichalStrehovsky
Copy link
Member Author

/azp run runtime-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky
Copy link
Member Author

@dotnet/crossgen-contrib could someone have a look? This is making outerloop testing red.

@steveisok
Copy link
Member

@MichalStrehovsky I asked my team to take a look.

@steveisok steveisok self-requested a review June 4, 2024 16:54
Copy link
Member

@steveisok steveisok left a comment

Choose a reason for hiding this comment

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

LGTM

@MichalStrehovsky
Copy link
Member Author

/ba-g known infra timeout that the build analysis correctly paired with #102239.

@MichalStrehovsky MichalStrehovsky merged commit 1c683a8 into dotnet:main Jun 4, 2024
136 of 141 checks passed
@MichalStrehovsky MichalStrehovsky deleted the workaround102868 branch June 4, 2024 19:07
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 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.

2 participants