Skip to content

Commit 4c835f1

Browse files
d-nettogbaraldivchuravy
authored
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 <[email protected]> Co-authored-by: Valentin Churavy <[email protected]>
1 parent bdc619f commit 4c835f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cluster.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,10 @@ function process_opts(opts)
13311331
end
13321332

13331333
# Propagate --threads to workers
1334-
exeflags = opts.nthreads > 0 ? `--threads=$(opts.nthreads)` : ``
1334+
threads = opts.nthreads > 0 ? `--threads=$(opts.nthreads)` : ``
1335+
gcthreads = opts.ngcthreads > 0 ? `--gcthreads=$(opts.ngcthreads)` : ``
1336+
1337+
exeflags = `$threads $gcthreads`
13351338

13361339
# add processors
13371340
if opts.nprocs > 0

0 commit comments

Comments
 (0)