Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix assert failure in grow_heap_segment for SVR GC. #86889

Merged

Conversation

PeterSolMS
Copy link
Contributor

For my previous change, I overlooked the fact that we may call grow_heap_segment from within should_proceed_for_no_gc(), so it's too late to turn off gradual_decommit_in_progress_p after this method returns.

The fix is to turn off gradual_decommit_in_progress_p at the beginning of should_proceed_for_no_gc(). If it turns out we still want to do a GC, the flag will get turned on again by that GC, if appropriate.

For my previous change, I overlooked the fact that we may call grow_heap_segment from within should_proceed_for_no_gc(), so it's too late to turn off gradual_decommit_in_progress_p after this method returns.
@ghost
Copy link

ghost commented May 30, 2023

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

Issue Details

For my previous change, I overlooked the fact that we may call grow_heap_segment from within should_proceed_for_no_gc(), so it's too late to turn off gradual_decommit_in_progress_p after this method returns.

The fix is to turn off gradual_decommit_in_progress_p at the beginning of should_proceed_for_no_gc(). If it turns out we still want to do a GC, the flag will get turned on again by that GC, if appropriate.

Author: PeterSolMS
Assignees: PeterSolMS
Labels:

area-GC-coreclr

Milestone: -

@mangod9 mangod9 merged commit 236ce6a into dotnet:main May 30, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 29, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants