We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af36919 commit 841148dCopy full SHA for 841148d
src/jloptions.c
@@ -725,9 +725,11 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
725
}
726
jl_options.nthreads = nthreads + nthreadsi;
727
728
+ assert(jl_options.nthreadpools == 1 || jl_options.nthreadpools == 2);
729
int16_t *ntpp = (int16_t *)malloc_s(jl_options.nthreadpools * sizeof(int16_t));
730
ntpp[0] = (int16_t)nthreads;
- ntpp[1] = (int16_t)nthreadsi;
731
+ if (jl_options.nthreadpools == 2)
732
+ ntpp[1] = (int16_t)nthreadsi;
733
jl_options.nthreads_per_pool = ntpp;
734
break;
735
0 commit comments