Skip to content

[release/6.0] Undo struct promotion on "RetInd" code path - #58602

Merged
jeffschwMSFT merged 9 commits into
release/6.0from
backport/pr-58582-to-release/6.0
Sep 7, 2021
Merged

[release/6.0] Undo struct promotion on "RetInd" code path#58602
jeffschwMSFT merged 9 commits into
release/6.0from
backport/pr-58582-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

Backport of #58582 to release/6.0

/cc @kunalspathak

Customer Impact

When struct's field is passed by reference, any update made to the ref variable doesn't change the original value of struct's field. Additionally, if try to retrieve the value of the parameter, it returns wrong result.

Testing

The fix contains a test.

Risk

Low, the issue arises in very specific scenario when we decide to promote struct, later undo the promotion and one of the field is used as return result.

@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 3, 2021
@ghost

ghost commented Sep 3, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #58582 to release/6.0

/cc @kunalspathak

Customer Impact

Testing

Risk

Author:github-actions[bot]
Assignees:-
Labels:

area-CodeGen-coreclr

Milestone:-

@kunalspathak

Copy link
Copy Markdown
Contributor

@dotnet/jit-contrib , @AndyAyersMS

@JulieLeeMSFT

Copy link
Copy Markdown
Member

cc @jeffschwMSFT to backport to 6.0.

@Anipik

Copy link
Copy Markdown
Contributor

cc @jeffschwMSFT

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

@jeffschwMSFT
jeffschwMSFT merged commit ed71783 into release/6.0Sep 7, 2021
@akoeplinger
akoeplinger deleted the backport/pr-58582-to-release/6.0 branch September 9, 2021 11:25
@ghostghost locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@kunalspathak@JulieLeeMSFT@Anipik@jeffschwMSFT@AndyAyersMS