diff options
author | Rickard Green <[email protected]> | 2013-06-12 15:55:28 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-06-12 15:55:28 +0200 |
commit | 1a01cae765a20c629f1647fba4126e8ed0e2ec9d (patch) | |
tree | 3ccee04d951d680dd422e265103c643cabc41f0c /erts/emulator/beam/erl_init.c | |
parent | 5abf95afb89eb6c2a93f68c08694710e23bab546 (diff) | |
parent | 64fcb4fefc24cba2d2c81ebb236b89c676c06c4b (diff) | |
download | otp-1a01cae765a20c629f1647fba4126e8ed0e2ec9d.tar.gz otp-1a01cae765a20c629f1647fba4126e8ed0e2ec9d.tar.bz2 otp-1a01cae765a20c629f1647fba4126e8ed0e2ec9d.zip |
Merge branch 'maint'
* maint:
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(); |