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.
  • Loading branch information
gbaraldi authored Aug 27, 2024
1 parent f457a75 commit d5bbcc5
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 @@ -875,8 +875,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
} else {
post_image_load_hooks();
}
Expand Down

0 comments on commit d5bbcc5

Please sign in to comment.