Skip to content

Commit 4d46082

Browse files
gbaraldiKristofferC
authored andcommitted
Initialize threadpools correctly during sysimg build (#55567)
I made a mistake with which threadpool was which. (cherry picked from commit d5bbcc5)
1 parent 0ccb8b6 commit 4d46082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ static NOINLINE void _finish_julia_init(JL_IMAGE_SEARCH rel, jl_ptls_t ptls, jl_
884884
jl_n_markthreads = 0;
885885
jl_n_sweepthreads = 0;
886886
jl_n_gcthreads = 0;
887-
jl_n_threads_per_pool[0] = 1;
888-
jl_n_threads_per_pool[1] = 0;
887+
jl_n_threads_per_pool[0] = 0; // Interactive threadpool
888+
jl_n_threads_per_pool[1] = 1; // Default threadpool
889889
}
890890
jl_start_threads();
891891

0 commit comments

Comments
 (0)