Fix process background segment end (#53879)
Fix issue found in GetAllocatedBytesForCurrentThread with regions enabled. The issue was traced to a region that had become empty in a background GC, but was still considered valid in the next ephemeral GC, so because there were cards set, we marked objects referenced from dead objects in the segment. When a segment becomes completely empty in background GC, but is the start segment for the generation, we don't delete it, so we still need to reset heap_segment_allocated and decommit pages.
Showing
想要评论请 注册 或 登录