Skip to content

Commit

Permalink
Set the number of GC threads to number of compute threads
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto authored and RAI CI (GitHub Action Automation) committed Apr 24, 2024
1 parent a8b6d9d commit 7aa6249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,12 @@ void jl_init_threading(void)
}
else {
// if `--gcthreads` or ENV[NUM_GCTHREADS_NAME] was not specified,
// set the number of mark threads to half of compute threads
// and number of sweep threads to 0
// set the number of GC threads to the number of compute threads
if (nthreads <= 1) {
jl_n_markthreads = 0;
}
else {
jl_n_markthreads = (nthreads / 2) - 1;
jl_n_markthreads = nthreads - 1;
}
// if `--gcthreads` or ENV[NUM_GCTHREADS_NAME] was not specified,
// cap the number of threads that may run the mark phase to
Expand Down

0 comments on commit 7aa6249

Please sign in to comment.