diff options
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r-- | erts/emulator/beam/erl_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c index 4ae656a3ad..e2f2cccb7e 100644 --- a/erts/emulator/beam/erl_init.c +++ b/erts/emulator/beam/erl_init.c @@ -786,6 +786,8 @@ early_init(int *argc, char **argv) /* elid.mem.ll.free = ethr_ll_free; #ifdef ERTS_SMP + if (erts_max_main_threads > no_schedulers) + erts_max_main_threads = no_schedulers; elid.main_threads = erts_max_main_threads; #else elid.main_threads = 1; |