Skip to content

Commit 18dfd6a

Browse files
cccclaidbort
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 (cherry picked from commit 1fd80fe)
1 parent a520ec8 commit 18dfd6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/executor/method.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,9 @@ Error Method::execute_instruction() {
10601060
delegate_idx,
10611061
n_delegate_,
10621062
step_state_.instr_idx);
1063-
BackendExecutionContext backend_execution_context(event_tracer_);
1063+
BackendExecutionContext backend_execution_context(
1064+
/*event_tracer*/ event_tracer_,
1065+
/*temp_allocator*/ memory_manager_->temp_allocator());
10641066
err = delegates_[delegate_idx].Execute(
10651067
backend_execution_context,
10661068
chain.argument_lists_[step_state_.instr_idx].data());

0 commit comments

Comments
 (0)