From 4d46082a794fb0359395442a3cf232bf0eea4949 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Tue, 27 Aug 2024 15:00:55 -0300 Subject: [PATCH] Initialize threadpools correctly during sysimg build (#55567) I made a mistake with which threadpool was which. (cherry picked from commit d5bbcc5aaec8033de1dd5b4b0de730ab40575469) --- src/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index c49ec2ac80be2..24ecf13112c4b 100644 --- a/src/init.c +++ b/src/init.c @@ -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();