Skip to content

Commit

Permalink
Increase execution stack size (#4726)
Browse files Browse the repository at this point in the history
* Increase execution stack size

* fmt

* Update version to MAIN.2.3 (#4727)

* review comment

* Revert "Update version to MAIN.2.3 (#4727)"

This reverts commit 3f07ced.

* Update worker.rs

* update comment
  • Loading branch information
Leo-Besancon authored Jul 17, 2024
1 parent 7620cbb commit daeb398
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion massa-execution-worker/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,12 @@ pub fn start_execution_worker(

// launch the execution thread
let input_data_clone = input_data.clone();
let thread_builder = thread::Builder::new().name("execution".into());

// We set the stack size to 200 Mb instead of the default 2 Mb to avoid stack overflows
// as a temporary workaround fully fixed by https://github.com/massalabs/massa/pull/4729
let thread_builder = thread::Builder::new()
.stack_size(200 * 1024 * 1024)
.name("execution".into());
let thread_handle = thread_builder
.spawn(move || {
ExecutionThread::new(config, input_data_clone, execution_state, selector).main_loop();
Expand Down

0 comments on commit daeb398

Please sign in to comment.