Skip to content

Commit

Permalink
use printf/exit instead of jl_error for "too many threads" (JuliaLa…
Browse files Browse the repository at this point in the history
…ng#37223)

This is too early for `jl_error` to work.
  • Loading branch information
JeffBezanson authored and oscardssmith committed Aug 28, 2020
1 parent 5f0759d commit d4d0109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ void jl_start_threads(void)
// non-exclusive: no affinity settings; let the kernel move threads about
if (exclusive) {
if (jl_n_threads > jl_cpu_threads()) {
jl_n_threads = 1;
jl_error("Too many threads running for " MACHINE_EXCLUSIVE_NAME " option.");
jl_printf(JL_STDERR, "ERROR: Too many threads requested for %s option.\n", MACHINE_EXCLUSIVE_NAME);
exit(1);
}
memset(mask, 0, cpumasksize);
mask[0] = 1;
Expand Down

0 comments on commit d4d0109

Please sign in to comment.