Skip to content

Conversation

@cshung
Copy link
Contributor

@cshung cshung commented Sep 26, 2022

For various reasons, it is possible that the GC skips the computation of end_gen0_region_space. For example, if we decided to compact but we never called decide_on_compaction_space, we will leave the end_gen0_region_space unchanged from its initial value 0.

That would lead to bad downstream consequences, for example, in short_on_end_of_seg, the end_gen0_region_space is used to decide whether or not we can satisfy an allocation request or not, having a 0 there will fail the allocation.

This PR ensures the field end_gen0_region_space is always computed during a GC.

@cshung cshung requested a review from Maoni0 September 26, 2022 22:37
@cshung cshung self-assigned this Sep 26, 2022
@ghost
Copy link

ghost commented Sep 26, 2022

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

Issue Details

For various reasons, it is possible that the GC skips the computation of end_gen0_region_space. For example, if we decided to compact but we never called decide_on_compaction_space, we will leave the end_gen0_region_space unchanged from its initial value 0.

That would lead to bad downstream consequences, for example, in short_on_end_of_seg, the end_gen0_region_space is used to decide whether or not we can satisfy an allocation request or not, having a 0 there will fail the allocation.

This PR ensures the field end_gen0_region_space is always computed during a GC.

Author: cshung
Assignees: cshung
Labels:

area-GC-coreclr

Milestone: -

@cshung cshung marked this pull request as draft September 26, 2022 23:33
@cshung cshung force-pushed the public/always-compute-end-space branch 2 times, most recently from 275c603 to 4f7bd66 Compare September 28, 2022 23:30
@cshung cshung force-pushed the public/always-compute-end-space branch from 4f7bd66 to 416bae1 Compare September 29, 2022 00:47
@cshung cshung mentioned this pull request Sep 30, 2022
@cshung cshung closed this Oct 7, 2022
@cshung cshung deleted the public/always-compute-end-space branch October 7, 2022 00:51
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2022
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.

1 participant