未验证 提交 fab1a029 编写于 作者: W wanghuancoder 提交者: GitHub

refine gc for new_executor (#35764)

* refine gc for new_executor, test=develop

* refine, test=develop

* refine, test=develop

* merge, test=develop
上级 fe35496b
......@@ -385,6 +385,10 @@ void InterpreterCore::CheckGC(size_t instr_id,
!var_scope.vec_meta_info_[var_id].vardesc_->Persistable()) {
gc_.Add(var_scope.var_list[var_id], gc_event_[instr_id],
vec_instruction_[instr_id].dev_ctx_);
} else if (is_ready &&
var_scope.vec_meta_info_[var_id].vardesc_ == nullptr) {
gc_.Add(var_scope.var_list[var_id], gc_event_[instr_id],
vec_instruction_[instr_id].dev_ctx_);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册