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-rc2] [interp] Disable optimization if the var index is greater than G_MAXUINT16 #59261

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 17, 2021

Backport of #59225 to release/6.0-rc2

/cc @lambdageek @BrzVlad

Customer Impact

When the Mono Interpreter is executing certain large methods, it may incorrectly optimize the initialization of some function call arguments resulting in data corruption.

This is a regression caused by #52242

This is a fairly unlikely scenario (large method with a certain call structure) for human-written code, but might be possible in generated code. On WebAssembly there may not be a good workaround.

Testing

CI

Risk

Low. This change is just inhibiting an optimization in more cases.

…INT16

We store the var index in the guint16 slots of the instruction
@ghost
Copy link

ghost commented Sep 17, 2021

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

Issue Details

Backport of #59225 to release/6.0-rc2

/cc @lambdageek @BrzVlad

Customer Impact

Testing

Risk

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

area-Codegen-Interpreter-mono

Milestone: -

@lewing lewing added the Servicing-consider Issue for next servicing release review label Sep 17, 2021
@jamshedd jamshedd added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 21, 2021
@Anipik Anipik merged commit 7006202 into release/6.0-rc2 Sep 21, 2021
@jkotas jkotas deleted the backport/pr-59225-to-release/6.0-rc2 branch September 24, 2021 04:30
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants