Skip to content

Commit 525002d

Browse files
bvdmitrid-netto
authored andcommitted
fix typo in the --gcthreads argument description
1 parent 2d4d096 commit 525002d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jloptions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ static const char opts[] =
131131
" interface if supported (Linux and Windows) or to the number of CPU\n"
132132
" threads if not supported (MacOS) or if process affinity is not\n"
133133
" configured, and sets M to 1.\n"
134-
" --gcthreads=M[,N] Use M threads for the mark phase of GC and N (0 or 1) threads for the concurrent sweeping phase of GC.\n"
135-
" M is set to half of the number of compute threads and N is set to 0 if unspecified.\n"
134+
" --gcthreads=N[,M] Use N threads for the mark phase of GC and M (0 or 1) threads for the concurrent sweeping phase of GC.\n"
135+
" N is set to half of the number of compute threads and M is set to 0 if unspecified.\n"
136136
" -p, --procs {N|auto} Integer value N launches N additional local worker processes\n"
137137
" \"auto\" launches as many workers as the number of local CPU threads (logical cores)\n"
138138
" --machine-file <file> Run processes on hosts listed in <file>\n\n"
@@ -838,7 +838,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
838838
char *endptri;
839839
long nsweepthreads = strtol(&endptr[1], &endptri, 10);
840840
if (errno != 0 || endptri == &endptr[1] || *endptri != 0 || nsweepthreads < 0 || nsweepthreads > 1)
841-
jl_errorf("julia: --gcthreads=<n>,<m>; n must be 0 or 1");
841+
jl_errorf("julia: --gcthreads=<n>,<m>; m must be 0 or 1");
842842
jl_options.nsweepthreads = (int8_t)nsweepthreads;
843843
}
844844
break;

0 commit comments

Comments
 (0)