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/6.0] Fix issue with incorrect handling of optimized method layouts #60109

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 7, 2021

Backport of #59781 to release/6.0

/cc @davidwrighton

Customer Impact

Applications that enable the experimental method layout switch will not experience unpredictable runtime behavior.

Testing

The issue was detected via attempts to use the method layout optimization on larger applications.

Risk

Low. The effected code is only used within crossgen2, and the behavior change is isolated to scenarios where optimized method layout is enabled.

…ort order of the RuntimeFunctions table (among others) was not properly handled when an optimized method layout was applied - While this bug applied to non-composite builds, it was easily reproduced with a composite build - Fix lack of test infrastructure around non-standard method layouts. - Add new random method sorting order - Use new random sorting order in crossgen2 test passes

Fixes #59089
@davidwrighton davidwrighton added the Servicing-consider Issue for next servicing release review label Oct 7, 2021
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. Please get a code review and we should consider for 6.0

@jeffschwMSFT jeffschwMSFT added this to the 6.0.0 milestone Oct 7, 2021
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 7, 2021
Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Anipik Anipik merged commit 9dfda4f into release/6.0 Oct 8, 2021
@akoeplinger akoeplinger deleted the backport/pr-59781-to-release/6.0 branch October 12, 2021 15:29
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-crossgen2-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants