Skip to content

Commit

Permalink
Implement parallel marking (#48600)
Browse files Browse the repository at this point in the history
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 <baraldigabriel@gmail.com>
Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
  • Loading branch information
3 people authored Apr 28, 2023
1 parent bdc619f commit 4c835f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cluster.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c835f1

Please sign in to comment.