Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Aug 28, 2025

Backport of #119164 to release/10.0

/cc @jkotas

Customer Impact

  • Customer reported
  • Found internally

Intermittent hang during GC suspension on machines under heavy load running Windows 10 era OSes.

Regression

  • Yes
  • No

.NET 8 -> .NET 9 regression introduced by #101782.

Testing

CI tests

Risk

Low

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.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

TS_GCSuspendRedirected is normally cleared in the slow path of pulsing GC mode (RareDisablePreemptiveGC). The problem is that we may not even get to that slow path if the thread gets rescheduled right after we switch to preemptive mode and gets scheduled back only after the GC completes and resumes execution. This change clears it explicitly.

Fixes #119149
@jkotas jkotas requested review from VSadov and mangod9 August 28, 2025 06:12
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 can merge when ready

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Aug 28, 2025
@jeffschwMSFT jeffschwMSFT added this to the 10.0.0 milestone Aug 28, 2025
@jeffschwMSFT jeffschwMSFT merged commit fcde651 into release/10.0 Aug 28, 2025
102 of 105 checks passed
@jkotas jkotas deleted the backport/pr-119164-to-release/10.0 branch August 28, 2025 21:04
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants