diff options
author | Rickard Green <[email protected]> | 2013-06-11 17:30:47 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-06-11 18:33:38 +0200 |
commit | 4c9a66c4ba3bbbd6136f3a284fc1accbc0e9cea2 (patch) | |
tree | f6ecb789473b7d15fad43b3c0838d8784a9aaf3b /erts/emulator/beam/erl_process.h | |
parent | 9919508b2cc177ec4afdb53bb9d20563973461f8 (diff) | |
download | otp-4c9a66c4ba3bbbd6136f3a284fc1accbc0e9cea2.tar.gz otp-4c9a66c4ba3bbbd6136f3a284fc1accbc0e9cea2.tar.bz2 otp-4c9a66c4ba3bbbd6136f3a284fc1accbc0e9cea2.zip |
erts: Add the +sfwi system flag
+sfwi Interval
Set scheduler forced wakeup interval. All run queues will be scanned
each Interval milliseconds. While there are sleeping schedulers in
the system, one scheduler will be woken for each non-empty run queue
found. An Interval of zero disables this feature, which also is the
default.
This feature has been introduced as a temporary workaround for lengthy
executing native code, and native code that do not bump reductions
properly in OTP. When these bugs have be fixed the +sfwi flag will
be removed.
Diffstat (limited to 'erts/emulator/beam/erl_process.h')
-rw-r--r-- | erts/emulator/beam/erl_process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index 3c1edfad7a..3398e6bd7a 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -387,6 +387,10 @@ struct ErtsRunQueue_ { } ports; }; +#ifdef ERTS_SMP +extern long erts_runq_supervision_interval; +#endif + typedef union { ErtsRunQueue runq; char align[ERTS_ALC_CACHE_LINE_ALIGN_SIZE(sizeof(ErtsRunQueue))]; |