diff --git a/src/threading.c b/src/threading.c index b0b88cfb7c2a5..05607c12085f2 100644 --- a/src/threading.c +++ b/src/threading.c @@ -709,7 +709,7 @@ void jl_init_threading(void) jl_atomic_store_release(&jl_all_tls_states, (jl_ptls_t*)calloc(jl_all_tls_states_size, sizeof(jl_ptls_t))); jl_atomic_store_release(&jl_n_threads, jl_all_tls_states_size); jl_n_gcthreads = ngcthreads; - gc_first_tid = nthreads; + gc_first_tid = nthreads + nthreadsi; } static uv_barrier_t thread_init_done;