aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-12-01 09:47:25 +0100
committerRickard Green <[email protected]>2011-12-01 09:47:25 +0100
commitf597c0d9de1e8f7ffec0d63e07a6ae85eae3cd27 (patch)
treeccb2e9db5de897a115a8f8746766234c731b47a4 /erts/emulator/beam
parent736bd3aa619244786c32c882001604210f846fa4 (diff)
parentd4f67bb08dec687671929b389f172dc2988aa363 (diff)
downloadotp-f597c0d9de1e8f7ffec0d63e07a6ae85eae3cd27.tar.gz
otp-f597c0d9de1e8f7ffec0d63e07a6ae85eae3cd27.tar.bz2
otp-f597c0d9de1e8f7ffec0d63e07a6ae85eae3cd27.zip
Merge branch 'rickard/deprecate-runtime-binding/OTP-9749'
* rickard/deprecate-runtime-binding/OTP-9749: Deprecate erlang:system_flag/2 arguments scheduler_bind_type and cpu_topology
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/bif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index f5616af95e..26f1b4facb 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -4124,8 +4124,20 @@ BIF_RETTYPE system_flag_2(BIF_ALIST_2)
if (is_value(res))
BIF_RET(res);
} else if (ERTS_IS_ATOM_STR("cpu_topology", BIF_ARG_1)) {
+ erts_send_warning_to_logger_str(
+ BIF_P->group_leader,
+ "A call to erlang:system_flag(cpu_topology, _) was made.\n"
+ "The cpu_topology argument is deprecated and scheduled\n"
+ "for removal in erts-5.10/OTP-R16. For more information\n"
+ "see the erlang:system_flag/2 documentation.\n");
BIF_TRAP1(set_cpu_topology_trap, BIF_P, BIF_ARG_2);
} else if (ERTS_IS_ATOM_STR("scheduler_bind_type", BIF_ARG_1)) {
+ erts_send_warning_to_logger_str(
+ BIF_P->group_leader,
+ "A call to erlang:system_flag(scheduler_bind_type, _) was\n"
+ "made. The scheduler_bind_type argument is deprecated and\n"
+ "scheduled for removal in erts-5.10/OTP-R16. For more\n"
+ "information see the erlang:system_flag/2 documentation.\n");
return erts_bind_schedulers(BIF_P, BIF_ARG_2);
}
error: