diff options
author | Rickard Green <[email protected]> | 2013-06-12 15:52:34 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-06-12 15:52:34 +0200 |
commit | 64fcb4fefc24cba2d2c81ebb236b89c676c06c4b (patch) | |
tree | d576026be71715795b8d374ac4ae620a25d24cef /erts/emulator/beam/erl_init.c | |
parent | 1f8d9f43766fea0e706db8923075ab65a7677daf (diff) | |
parent | 4c9a66c4ba3bbbd6136f3a284fc1accbc0e9cea2 (diff) | |
download | otp-64fcb4fefc24cba2d2c81ebb236b89c676c06c4b.tar.gz otp-64fcb4fefc24cba2d2c81ebb236b89c676c06c4b.tar.bz2 otp-64fcb4fefc24cba2d2c81ebb236b89c676c06c4b.zip |
Merge branch 'rickard/+sfwi/OTP-11164' into maint
* rickard/+sfwi/OTP-11164:
erts: Add the +sfwi system flag
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r-- | erts/emulator/beam/erl_init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c index 2fb73aed96..4bae3dfeb4 100644 --- a/erts/emulator/beam/erl_init.c +++ b/erts/emulator/beam/erl_init.c @@ -1480,6 +1480,22 @@ erl_start(int argc, char **argv) ("suggested scheduler thread stack size %d kilo words\n", erts_sched_thread_suggested_stack_size)); } + else if (has_prefix("fwi", sub_param)) { + long val; + arg = get_arg(sub_param+3, argv[i+1], &i); + errno = 0; + val = strtol(arg, NULL, 10); + if (errno != 0 || val < 0) { + erts_fprintf(stderr, + "bad scheduler forced wakeup " + "interval %s\n", + arg); + erts_usage(); + } +#ifdef ERTS_SMP + erts_runq_supervision_interval = val; +#endif + } else { erts_fprintf(stderr, "bad scheduling option %s\n", argv[i]); erts_usage(); |