Skip to content

Commit

Permalink
Also set the nthreads for the threadpools during bootstrap (#50358)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Jun 30, 2023
1 parent eeb0b69 commit b303d0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +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_start_threads();

Expand Down

0 comments on commit b303d0e

Please sign in to comment.