diff --git a/stdlib/Distributed/src/cluster.jl b/stdlib/Distributed/src/cluster.jl index 0c865b8d1b3a8..d8cc052967d50 100644 --- a/stdlib/Distributed/src/cluster.jl +++ b/stdlib/Distributed/src/cluster.jl @@ -1332,8 +1332,8 @@ function get_threads_spec(opts) end function get_gcthreads_spec(opts) - if opts.markthreads > 0 || opts.sweepthreads > 0 - `--gcthreads=$(opts.markthreads),$(opts.sweepthreads)` + if opts.nmarkthreads > 0 || opts.nsweepthreads > 0 + `--gcthreads=$(opts.nmarkthreads),$(opts.nsweepthreads)` else `` end