Skip to content

Commit

Permalink
Initialize threadpools correctly during sysimg build (#55567)
Browse files Browse the repository at this point in the history
I made a mistake with which threadpool was which.

(cherry picked from commit d5bbcc5)
  • Loading branch information
gbaraldi authored and KristofferC committed Oct 9, 2024
1 parent 0ccb8b6 commit 4d46082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,8 @@ static NOINLINE void _finish_julia_init(JL_IMAGE_SEARCH rel, jl_ptls_t ptls, jl_
jl_n_markthreads = 0;
jl_n_sweepthreads = 0;
jl_n_gcthreads = 0;
jl_n_threads_per_pool[0] = 1;
jl_n_threads_per_pool[1] = 0;
jl_n_threads_per_pool[0] = 0; // Interactive threadpool
jl_n_threads_per_pool[1] = 1; // Default threadpool
}
jl_start_threads();

Expand Down

0 comments on commit 4d46082

Please sign in to comment.