aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-11-19 01:46:54 +0100
committerRickard Green <[email protected]>2011-12-01 09:42:21 +0100
commitd4f67bb08dec687671929b389f172dc2988aa363 (patch)
tree566a060198cff112189826b9030210ab72d56940 /erts/emulator
parent8781932b3b8769b6f208ac7c00471122ec7dd055 (diff)
downloadotp-d4f67bb08dec687671929b389f172dc2988aa363.tar.gz
otp-d4f67bb08dec687671929b389f172dc2988aa363.tar.bz2
otp-d4f67bb08dec687671929b389f172dc2988aa363.zip
Deprecate erlang:system_flag/2 arguments scheduler_bind_type and cpu_topology
The use of erlang:system_flag(scheduler_bind_type, _) and erlang:system_flag(cpu_topology, _) have been deprecated and scheduled for removal in erts-5.10/OTP-R16. For more information see the documentation of erlang:system_flag/2.
Diffstat (limited to 'erts/emulator')
-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 07fdd809f8..9459be4fdb 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -4044,8 +4044,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: