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

Reduce committed bytes if mark array commit fails #106400

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

cshung
Copy link
Member

@cshung cshung commented Aug 14, 2024

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
Copy link
Member

Maoni0 commented Aug 22, 2024

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
90 checks passed
@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