Skip to content

Commit 23b5713

Browse files
d-nettoRAI CI (GitHub Action Automation)
authored and
RAI CI (GitHub Action Automation)
committed
Set the number of GC threads to number of compute threads
1 parent ac59a23 commit 23b5713

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/threading.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,12 @@ void jl_init_threading(void)
678678
}
679679
else {
680680
// if `--gcthreads` or ENV[NUM_GCTHREADS_NAME] was not specified,
681-
// set the number of mark threads to half of compute threads
682-
// and number of sweep threads to 0
681+
// set the number of GC threads to the number of compute threads
683682
if (nthreads <= 1) {
684683
jl_n_markthreads = 0;
685684
}
686685
else {
687-
jl_n_markthreads = (nthreads / 2) - 1;
686+
jl_n_markthreads = nthreads - 1;
688687
}
689688
// if `--gcthreads` or ENV[NUM_GCTHREADS_NAME] was not specified,
690689
// cap the number of threads that may run the mark phase to

0 commit comments

Comments
 (0)