Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 41311 - Assert failure ephemeral_heap_segment->saved_commit…
…ted == heap_segment_committed (dotnet#41441) This is an interaction problem between gradual decommit and entering a no GC region. Details: - When we enter a no GC region, we are manipulating our commit goals outside of GC, we usually are planning to commit more, so it makes sense to stop any gradual decommit in progress. - Even if we need to do a GC in preparation for a no GC region, any decommit target established by decommit_ephemeral_segment_pages is likely to be invalid, so we do an early out. - add an assert to grow_heap_segment so we can catch future issues in this area better. We may want to trigger the gradual decommit logic in set_allocations_for_no_gc if we discover that after accounting for the planned allocation, we still have substantial decommits. I'm leaving this for a later PR though.
- Loading branch information