aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-11-05 16:26:20 +0100
committerRickard Green <[email protected]>2010-12-01 09:51:04 +0100
commitf0fae4bebaa76a7608e09877da62ae84c365388d (patch)
tree44acb410bdc6d90a2c174a12e46b89200df0f8b1 /erts
parentce9cad280e24984bad398f5707a17a8f716ca5d3 (diff)
downloadotp-f0fae4bebaa76a7608e09877da62ae84c365388d.tar.gz
otp-f0fae4bebaa76a7608e09877da62ae84c365388d.tar.bz2
otp-f0fae4bebaa76a7608e09877da62ae84c365388d.zip
Don't use more reader groups than schedulers
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_init.c2
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;