Skip to content

Commit d5bbcc5

Browse files
authored
Initialize threadpools correctly during sysimg build (#55567)
I made a mistake with which threadpool was which.
1 parent f457a75 commit d5bbcc5

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
@@ -875,8 +875,8 @@ static NOINLINE void _finish_julia_init(JL_IMAGE_SEARCH rel, jl_ptls_t ptls, jl_
875875
jl_n_markthreads = 0;
876876
jl_n_sweepthreads = 0;
877877
jl_n_gcthreads = 0;
878-
jl_n_threads_per_pool[0] = 1;
879-
jl_n_threads_per_pool[1] = 0;
878+
jl_n_threads_per_pool[0] = 0; // Interactive threadpool
879+
jl_n_threads_per_pool[1] = 1; // Default threadpool
880880
} else {
881881
post_image_load_hooks();
882882
}

0 commit comments

Comments
 (0)