From 4c835f187a72727de137c0c2b4086a90e9d9bfa1 Mon Sep 17 00:00:00 2001 From: Diogo Netto <61364108+d-netto@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:59:33 -0300 Subject: [PATCH] Implement parallel marking (JuliaLang/julia#48600) Using a work-stealing queue after Chase and Lev, optimized for weak memory models by Le et al. Default number of GC threads is half the number of compute threads. Co-authored-by: Gabriel Baraldi Co-authored-by: Valentin Churavy --- src/cluster.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cluster.jl b/src/cluster.jl index d2cbe55e63270..3fd3d63108297 100644 --- a/src/cluster.jl +++ b/src/cluster.jl @@ -1331,7 +1331,10 @@ function process_opts(opts) end # Propagate --threads to workers - exeflags = opts.nthreads > 0 ? `--threads=$(opts.nthreads)` : `` + threads = opts.nthreads > 0 ? `--threads=$(opts.nthreads)` : `` + gcthreads = opts.ngcthreads > 0 ? `--gcthreads=$(opts.ngcthreads)` : `` + + exeflags = `$threads $gcthreads` # add processors if opts.nprocs > 0