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

[mono][interp] Fix inlining of ldarga #97553

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Jan 26, 2024

When inlining a method, all arguments are first copied to new vars. Ldarga is going to be applied on these copies. We were loading the address of the wrong var due to typo.

Fixes #97377

@ghost
Copy link

ghost commented Jan 26, 2024

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

Issue Details

When inlining a method, all arguments are first copied to new vars. Ldarga is going to be applied on these copies. We were loading the address of the wrong var due to typo.

Fixes #97377

Author: BrzVlad
Assignees: -
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@BrzVlad
Copy link
Member Author

BrzVlad commented Jan 26, 2024

@lewing This needs backport

@lewing
Copy link
Member

lewing commented Jan 26, 2024

/backport to release/8.0-staging

Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/7671373180

Copy link
Contributor

@lewing backporting to release/8.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: [mono][interp] Fix inlining of ldarga
Using index info to reconstruct a base tree...
M	src/mono/mono/mini/interp/transform.c
Falling back to patching base and 3-way merge...
Auto-merging src/mono/mono/mini/interp/transform.c
CONFLICT (content): Merge conflict in src/mono/mono/mini/interp/transform.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 [mono][interp] Fix inlining of ldarga
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@lewing an error occurred while backporting to release/8.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

@BrzVlad BrzVlad merged commit d6f23f9 into dotnet:main Jan 29, 2024
108 of 111 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 29, 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.

Mono Runtime Error in Blazor WASM App when using IL Weaving
3 participants