We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d3e664 commit bccddb0Copy full SHA for bccddb0
src/init.c
@@ -557,7 +557,7 @@ static void restore_fp_env(void)
557
if (jl_set_zero_subnormals(0) || jl_set_default_nans(0)) {
558
jl_error("Failed to configure floating point environment");
559
}
560
- if (!jl_options.handle_signals && jl_n_threads > 1) {
+ if (!jl_options.handle_signals && jl_atomic_load_relaxed(&jl_n_threads) > 1) {
561
jl_error("Cannot use `--handle-signals=no` with multiple threads (JULIA_NUM_THREADS > 1).\n"
562
"This will cause segmentation faults due to GC safepoint failures.\n"
563
"Remove `--handle-signals=no` or set JULIA_NUM_THREADS=1.\n"
0 commit comments