aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorMikael Pettersson <[email protected]>2016-12-19 11:17:05 +0100
committerLukas Larsson <[email protected]>2016-12-20 14:42:20 +0100
commitca7e946af9c2fdc86c1c74259ee7b6881c5aec1e (patch)
tree84f93ba851e22ba78654d1bc30b5dd1ae0108644 /erts/emulator/beam
parent8362491325db87bd7d561399f8ef8c849df22d33 (diff)
downloadotp-ca7e946af9c2fdc86c1c74259ee7b6881c5aec1e.tar.gz
otp-ca7e946af9c2fdc86c1c74259ee7b6881c5aec1e.tar.bz2
otp-ca7e946af9c2fdc86c1c74259ee7b6881c5aec1e.zip
erts: add erlang:system_info(atom_count)
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_bif_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 0e0842e139..9a3b78ae8d 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -2863,6 +2863,9 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1)
else if (ERTS_IS_ATOM_STR("atom_limit",BIF_ARG_1)) {
BIF_RET(make_small(erts_get_atom_limit()));
}
+ else if (ERTS_IS_ATOM_STR("atom_count",BIF_ARG_1)) {
+ BIF_RET(make_small(atom_table_size()));
+ }
else if (ERTS_IS_ATOM_STR("tolerant_timeofday",BIF_ARG_1)) {
if (erts_has_time_correction()
&& erts_time_offset_state() == ERTS_TIME_OFFSET_FINAL) {