Skip to content

[release/6.0] Fix issue with incorrect handling of optimized method layouts - #60109

Merged
Anipik merged 1 commit into
release/6.0from
backport/pr-59781-to-release/6.0
Oct 8, 2021
Merged

[release/6.0] Fix issue with incorrect handling of optimized method layouts#60109
Anipik merged 1 commit into
release/6.0from
backport/pr-59781-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Oct 7, 2021

Copy link
Copy Markdown
Contributor

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
@ghostghost added the area-ReadyToRun label Oct 7, 2021
@davidwrightondavidwrighton added the Servicing-consider Issue for next servicing release review label Oct 7, 2021

@jeffschwMSFTjeffschwMSFT 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.

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

@jeffschwMSFTjeffschwMSFT added this to the 6.0.0 milestone Oct 7, 2021
@leecowleecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 7, 2021

@trylektrylek 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, thanks!

@Anipik
Anipik merged commit 9dfda4f into release/6.0Oct 8, 2021
@akoeplinger
akoeplinger deleted the backport/pr-59781-to-release/6.0 branch October 12, 2021 15:29
@ghostghost locked as resolved and limited conversation to collaborators Nov 11, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ReadyToRunServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@jeffschwMSFT@trylek@leecow@Anipik@davidwrighton