Skip to content

Commit 1fd80fe

Browse files
cccclaifacebook-github-bot
authored andcommitted
fix the temp allocator for backend (#3490)
Summary: Pull Request resolved: #3490 Seems like forget to pass temp allocator to `BackendExecutionContext`... Reviewed By: tarun292 Differential Revision: D56893727 fbshipit-source-id: 81bb1208a163220f9b4250493b06069e6329628e
1 parent b9488fe commit 1fd80fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/executor/method.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,9 @@ Error Method::execute_instruction() {
10631063
delegate_idx,
10641064
n_delegate_,
10651065
step_state_.instr_idx);
1066-
BackendExecutionContext backend_execution_context(event_tracer_);
1066+
BackendExecutionContext backend_execution_context(
1067+
/*event_tracer*/ event_tracer_,
1068+
/*temp_allocator*/ memory_manager_->temp_allocator());
10671069
err = delegates_[delegate_idx].Execute(
10681070
backend_execution_context,
10691071
chain.argument_lists_[step_state_.instr_idx].data());

0 commit comments

Comments
 (0)