aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-02-15 18:16:18 +0100
committerBjörn-Egil Dahlberg <[email protected]>2016-02-16 15:07:17 +0100
commitf58e74b08380758d97c4d8a1d9ef53217f73fe6b (patch)
treecd8e6f5381cab13ef5a98ec7c95887dd5a3d3b50 /lib
parent4ea67ffdac2629255b1b0ed4e9423823f62c0947 (diff)
downloadotp-f58e74b08380758d97c4d8a1d9ef53217f73fe6b.tar.gz
otp-f58e74b08380758d97c4d8a1d9ef53217f73fe6b.tar.bz2
otp-f58e74b08380758d97c4d8a1d9ef53217f73fe6b.zip
kernel: Add basic system check of schedulers on heartbeat
Before a heartbeat to the port program a responsiveness check of the schedulers is performed. If the responsiveness check fails, stalls, the heartbeat will not be performed (as intended).
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/heart.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kernel/src/heart.erl b/lib/kernel/src/heart.erl
index ad3bbf2f7a..617ae2f91b 100644
--- a/lib/kernel/src/heart.erl
+++ b/lib/kernel/src/heart.erl
@@ -333,6 +333,7 @@ get_heart_cmd(Port) ->
%% if something goes wront -> no heartbeat.
check_callback(Callback) ->
+ ok = erts_internal:system_check(schedulers),
case Callback of
undefined -> ok;
{M,F} ->