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/7.0] [mono][interp] Fix an issue with deopt and interpreter tiering. #77059

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 14, 2022

Backport of #76743 to release/7.0

/cc @lewing @vargaz

Customer Impact

Can cause random failures on WebAssembly in AOT mode.

Testing

This is low frequency timing related issue that is difficult to reproduce outside of CI but CI has been passing in main after the fix

Risk

Low, only affects WebAssembly in AOT mode.

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

If a method is tiered while being run from interp_run_clause_with_il_state (),
the clause_args argument to interp_exec_method () still contains the old IL
offsets confusing the EH code, i.e. this line:
```
if (clause_args && frame == clause_args->exec_frame && context->handler_ip >= clause_args->end_at_ip)
```

Clear out clause_args at the beginning to avoid this.

Hopefully fixes
#76134
#74302
The IL offsets in the clause_args argument become out-of-date after tiering up.
@ghost
Copy link

ghost commented Oct 14, 2022

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

Issue Details

Backport of #76743 to release/7.0

/cc @lewing @vargaz

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

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

area-Codegen-Interpreter-mono

Milestone: -

@SamMonoRT
Copy link
Member

SamMonoRT commented Oct 14, 2022

We should not merge till we have clarity on this comment from @BrzVlad - #76743 (comment)

[SamP] - This issue has been addressed and we can proceed with this backport

Copy link
Member

@BrzVlad BrzVlad left a comment

Choose a reason for hiding this comment

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

I have some ideas for improving clarity around the use of clause_args, but I can work on them later, for .net 8.
[SamP] -The current changes for 7.0 are fine and cause no other regressions but fix the issue. Vlad has a possible better implementation idea for .NET 8

@carlossanlop
Copy link
Member

@vargaz @lewing when this is ready (and the above feedback addressed), please add the servicing-consider label and submit an approval request email to Tactics.

@lewing lewing added this to the 7.0.x milestone Oct 20, 2022
@carlossanlop
Copy link
Member

Any updates on this? It has not gone through Tactics approval yet.

@carlossanlop carlossanlop added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 2, 2022
@lewing lewing added Servicing-consider Issue for next servicing release review and removed NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) labels Nov 3, 2022
@lewing lewing closed this Nov 3, 2022
@lewing lewing reopened this Nov 3, 2022
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.1 Nov 10, 2022
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 10, 2022
@carlossanlop
Copy link
Member

CI is green. Tactics approved it. Signed off by area owners. No OOB package authoring changes needed (native code). Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit d933222 into release/7.0 Nov 10, 2022
@carlossanlop carlossanlop deleted the backport/pr-76743-to-release/7.0 branch November 10, 2022 18:37
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2022
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.

6 participants