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] Consider finally that jumps to itself as non-empty #58881

Merged
merged 2 commits into from
Sep 10, 2021

Conversation

github-actions[bot]
Copy link
Contributor

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

Backport of #58771 to release/6.0

/cc @kunalspathak

Customer Impact

If there is an infinite loop inside finally, we will not cleanly remove the unreachable blocks inside finally clause.

Testing

The change was locally tested. I didn't add explicit test because the repro needed an infinite loop.

Risk

Low - The change will conservatively skip removing a non-empty finally clause.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 9, 2021
@ghost
Copy link

ghost commented Sep 9, 2021

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

Issue Details

Backport of #58771 to release/6.0

/cc @kunalspathak

Customer Impact

Testing

Risk

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

area-CodeGen-coreclr

Milestone: -

@JulieLeeMSFT
Copy link
Member

CC @jeffschwMSFT for 6.0 backport.

@jeffschwMSFT
Copy link
Member

Please fill in the customer impact and request a code review.

@kunalspathak
Copy link
Member

@AndyAyersMS , @dotnet/jit-contrib

@AndyAyersMS
Copy link
Member

Did you look at what happens in release if we don't fix this issue?

@kunalspathak
Copy link
Member

Did you look at what happens in release if we don't fix this issue?

In release it works as expected, but it wrongly sets the bbRefs to UINT_MAX (since bbRefs == 0 and we do bbRefs--) which I feel little dangerous and worth fixing in .NET 6. Let me know if you think otherwise.

@AndyAyersMS
Copy link
Member

I agree this is very low risk, so I'm ok with us porting it.

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

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 669ebb4 into release/6.0 Sep 10, 2021
@jkotas jkotas deleted the backport/pr-58771-to-release/6.0 branch September 18, 2021 04:08
@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
area-CodeGen-coreclr CLR 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.

4 participants