未验证 提交 f2b5f1c3 编写于 作者: P Peter Sollich 提交者: GitHub

In gc_heap::walk_heap_per_heap, we need to iterate through the SOH generations...

In gc_heap::walk_heap_per_heap, we need to iterate through the SOH generations if USE_REGIONS is enabled. (#53995)

In gc_heap::walk_heap_per_heap, we need to iterate through the SOH generations if USE_REGIONS is enabled - otherwise the lower SOH generations may be skipped.
上级 c2f559cf
......@@ -44530,6 +44530,19 @@ void gc_heap::walk_heap_per_heap (walk_fn fn, void* context, int gen_number, BOO
end = heap_segment_allocated (seg);
continue;
}
#ifdef USE_REGIONS
else if (gen_number > 0)
{
// advance to next lower generation
gen_number--;
gen = gc_heap::generation_of (gen_number);
seg = generation_start_segment (gen);
x = heap_segment_mem (seg);
end = heap_segment_allocated (seg);
continue;
}
#endif // USE_REGIONS
else
{
if (walk_large_object_heap_p)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册