未验证 提交 c86c19f2 编写于 作者: A Andrew Au 提交者: GitHub

Caching settings.pause_mode to avoid deadlock (#84189)

上级 ba401925
......@@ -22628,6 +22628,8 @@ void gc_heap::garbage_collect_pm_full_gc()
void gc_heap::garbage_collect (int n)
{
gc_pause_mode saved_settings_pause_mode = settings.pause_mode;
//reset the number of alloc contexts
alloc_contexts_used = 0;
......@@ -23033,7 +23035,7 @@ void gc_heap::garbage_collect (int n)
#endif //MULTIPLE_HEAPS
done:
if (settings.pause_mode == pause_no_gc)
if (saved_settings_pause_mode == pause_no_gc)
allocate_for_no_gc_after_gc();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册