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] Decommit memory before returning to the region_allocator #81295

Merged

Conversation

cshung
Copy link
Member

@cshung cshung commented Jan 27, 2023

Backport of #80640 to release/7.0

/cc @cshung

Customer Impact

As customers reported in #79882, newly created arrays might not be zero-initialized, this violates our guarantees. Turn out this has to do with some of our low memory condition processing. After the fix, the arrays will always be zero-initialized.

Testing

This is tested under reliability framework stress test for both server and workstation. It is also tested against the ASP.NET benchmarks.

Risk

Low, given extensive testing.

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.

@ghost
Copy link

ghost commented Jan 27, 2023

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

Issue Details

null

Author: cshung
Assignees: -
Labels:

area-GC-coreclr

Milestone: -

@cshung cshung changed the title Avoid using a null heap to decommit the mark array (#80640) [release/7.0] Avoid using a null heap to decommit the mark array Jan 27, 2023
@cshung cshung marked this pull request as draft January 27, 2023 20:47
@cshung cshung changed the title [release/7.0] Avoid using a null heap to decommit the mark array [release/7.0] Decommit memory before returning to the region_allocator Jan 27, 2023
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

@jeffschwMSFT jeffschwMSFT added this to the 7.0.x milestone Jan 27, 2023
@cshung cshung marked this pull request as ready for review January 27, 2023 23:21
Copy link
Contributor

@PeterSolMS PeterSolMS left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Feb 6, 2023
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 7, 2023
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.4 Feb 7, 2023
@carlossanlop
Copy link
Member

Approved by Tactics for 7.0.4.
Signed-off by area owners.
No OOB changes needed for this PR.
CI failures known, unrelated: #81544 #81391 and potentially fixed with #81712
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 9fb2f8f into dotnet:release/7.0 Feb 9, 2023
@cshung cshung deleted the backport/pr-80640-to-release/7.0 branch February 14, 2023 07:48
@ghost ghost locked as resolved and limited conversation to collaborators Mar 16, 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.

6 participants