Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

cshung
Copy link

@cshung cshung commented Aug 11, 2022

Backport dotnet/runtime#73602.

Customer Impact

Customers reported occasional System.InvalidOperationException with message The NoGCRegion mode was already in progress when calling GC.TryStartNoGCRegion. This is preventing them from using this optimization and impacting their cold start latencies.

Testing

Customers have tried the fix on .NET 6 overnight and reported the exception never appears again. Meanwhile, there is an unpatched machine and observed 72 exceptions of the same type in the same time interval, proving this does fix the bug.

Risk

Low. This only impact customer using TryStartNoGCRegion, and this is the right thing to do.

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 3.1.x

@jeffschwMSFT jeffschwMSFT added area-GC Servicing-consider Issue for next servicing release review labels Aug 11, 2022
@jeffschwMSFT jeffschwMSFT added this to the 3.1.x milestone Aug 11, 2022
@cshung cshung changed the title Reset current_no_gc_region_info after leaving no gc region implicitly [release/3.1] Reset current_no_gc_region_info after leaving no gc region implicitly Aug 15, 2022
@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 15, 2022
@carlossanlop
Copy link

Approved via email by Tactics.
Not sure what milestone's next, I'm leaving it at 3.1.x (cc @rbhanda, please correct if you need it).
There is one CI failure, a bash script timeout that returned -1. Unrelated to this change (verified with @cshung via chat).
Area owner signed off.
No OOB package authoring changes needed (native code).
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 233a763 into dotnet:release/3.1 Aug 15, 2022
@cshung cshung deleted the public/backport-nogc-region-fix branch August 15, 2022 19:56
hoyosjs added a commit that referenced this pull request Sep 15, 2022
* Update branding to 3.1.29 (#28260)
* Reset current_no_gc_region_info after leaving no gc region implicitly (#28265)
* Updated finalize-publish.yml

Co-authored-by: vseanreesermsft <78103370+vseanreesermsft@users.noreply.github.com>
Co-authored-by: dotnet-bot <dotnet-bot@microsoft.com>
Co-authored-by: Sean Reeser <v-seanreeser@microsoft.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Andrew Au <cshung@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GC Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants