Skip to content

Reduce committed bytes if mark array commit fails - #106400

Merged
cshung merged 1 commit into
dotnet:mainfrom
cshung:public/handle-commit-failure
Aug 23, 2024
Merged

cshung merged 1 commit into
dotnet:mainfrom
cshung:public/handle-commit-failure

Conversation

@cshung

@cshung cshung commented Aug 14, 2024 •

Copy link
Copy Markdown
Contributor

Problem:

In case the GC tries to create a new segment, it might succeed to commit the new card table part for it but fail to commit the mark arrays, as such, we will virtual free the full range so every thing (card table and mark array) are decommitted, but commit accounting is not reducing the bytes there.

Since the range is decommitted, this has only debug impact.

Fixes #102706

@Maoni0

Maoni0 commented Aug 22, 2024

Copy link
Copy Markdown
Member

please do add a description of what the issue is and how your fix fixes the problem.

@cshung
cshung merged commit 4179b31 into dotnet:main Aug 23, 2024
@cshung
cshung deleted the public/handle-commit-failure branch August 23, 2024 00:03
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure: GC\\Features\\HeapExpansion\\Finalizer\\Finalizer.cmd

2 participants