提交 f57fd8de 编写于 作者: B Brian Anderson

rt: Run the cycle collector on the C stack

上级 74d5faa8
......@@ -284,7 +284,9 @@ void task_start_wrapper(spawn_args *a)
failed = true;
}
cc::do_cc(task);
// We're on the Rust stack and the cycle collector may recurse arbitrarily
// deep, so switch to the C stack
task->sched->c_context.call_shim_on_c_stack(task, (void*)cc::do_cc);
rust_closure_env* env = (rust_closure_env*)a->a3;
if(env) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册