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-staging] Caching settings.pause_mode to avoid deadlock #84738

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 12, 2023

Backport of #84189 to release/7.0-staging

/cc @cshung

Customer Impact

Processes may deadlock if they are using NoGCRegion. This is reported as #84096. This explained the root cause and the fix. Since it is a race between a GC completing and stopping a NoGCRegion, any NoGCRegion user could have hit this by chance.

Testing

This change was merged into the main branch 3 weeks ago and hit no issues associated with that, and it has gone through the regular GC testing as reported here. Running the NoGCRegion CI test under Server GC routinely reproduces the deadlock and I verified that the deadlock is gone with this fix.

Risk

The change only caches a flag, it is unlikely to cause any regression.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

@ghost
Copy link

ghost commented Apr 12, 2023

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

Issue Details

Backport of #84189 to release/7.0-staging

/cc @cshung

Customer Impact

Testing

Risk

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

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

area-GC-coreclr

Milestone: -

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. we will take for consideration in 7.0.x. please get a code review.

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Apr 18, 2023
@jeffschwMSFT jeffschwMSFT added this to the 7.0.x milestone Apr 18, 2023
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.7 Apr 25, 2023
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 25, 2023
@cshung cshung merged commit fbd8c18 into release/7.0-staging Apr 26, 2023
@cshung cshung deleted the backport/pr-84189-to-release/7.0-staging branch April 26, 2023 18:01
@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GC-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants