diff options
author | Rickard Green <[email protected]> | 2010-11-05 16:26:20 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2010-12-01 09:51:04 +0100 |
commit | f0fae4bebaa76a7608e09877da62ae84c365388d (patch) | |
tree | 44acb410bdc6d90a2c174a12e46b89200df0f8b1 /erts/emulator/beam/erl_init.c | |
parent | ce9cad280e24984bad398f5707a17a8f716ca5d3 (diff) | |
download | otp-f0fae4bebaa76a7608e09877da62ae84c365388d.tar.gz otp-f0fae4bebaa76a7608e09877da62ae84c365388d.tar.bz2 otp-f0fae4bebaa76a7608e09877da62ae84c365388d.zip |
Don't use more reader groups than schedulers
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; |