diff options
author | Lukas Larsson <[email protected]> | 2016-12-20 14:44:18 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-12-20 14:44:18 +0100 |
commit | 9ffc782bd41a89b8f3f73bd698253812d30a8293 (patch) | |
tree | 0c64e1ed706888ac4b1b8b46b8d86ce34bf87777 /erts/emulator/beam | |
parent | a4350201d204d61ee67b7330200c8d7d6d4b38d5 (diff) | |
parent | ca7e946af9c2fdc86c1c74259ee7b6881c5aec1e (diff) | |
download | otp-9ffc782bd41a89b8f3f73bd698253812d30a8293.tar.gz otp-9ffc782bd41a89b8f3f73bd698253812d30a8293.tar.bz2 otp-9ffc782bd41a89b8f3f73bd698253812d30a8293.zip |
Merge branch 'mikpe/erts/system_info-atom_table/PR-1286/OTP-13976'
* mikpe/erts/system_info-atom_table/PR-1286/OTP-13976:
erts: add erlang:system_info(atom_count)
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_bif_info.c | 3 |
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) { |