Skip to content

[release/7.0] Decommit memory before returning to the region_allocator - #81295

Merged
carlossanlop merged 1 commit into
dotnet:release/7.0from
cshung:backport/pr-80640-to-release/7.0
Feb 9, 2023
Merged

[release/7.0] Decommit memory before returning to the region_allocator#81295
carlossanlop merged 1 commit into
dotnet:release/7.0from
cshung:backport/pr-80640-to-release/7.0

Conversation

@cshung

@cshungcshung commented Jan 27, 2023

Copy link
Copy Markdown
Contributor

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.

@ghostghost added the area-GC-coreclr label Jan 27, 2023
@ghostghost assigned cshungJan 27, 2023
@ghost

Copy link
Copy Markdown

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:-

@cshungcshung 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 arrayJan 27, 2023
@cshung
cshung marked this pull request as draft January 27, 2023 20:47
@cshungcshung 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_allocatorJan 27, 2023

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

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

@jeffschwMSFTjeffschwMSFT 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

@PeterSolMSPeterSolMS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

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

Copy link
Copy Markdown
Contributor

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.0Feb 9, 2023
@cshung
cshung deleted the backport/pr-80640-to-release/7.0 branch February 14, 2023 07:48
@ghostghost locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-GC-coreclrServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@cshung@carlossanlop@jeffschwMSFT@Maoni0@PeterSolMS@rbhanda