Skip to content

Commit

Permalink
Initialize threadpools correctly during sysimg build (JuliaLang#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 and udesou committed Aug 28, 2024
1 parent 9b12c98 commit 18b99d1
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 18b99d1

Please sign in to comment.