aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorSteve Vinoski <[email protected]>2013-09-04 10:21:47 -0400
committerLukas Larsson <[email protected]>2013-09-24 09:53:35 +0200
commit75a79e6547fd66c2194d6f488c30ad888a715f4b (patch)
treefc463d28df3ff9871c9fa46eed4e0f3589245141 /erts/emulator/beam/erl_bif_info.c
parent5fb8ad6250e2a40b12824f89c42dc91b04a39c40 (diff)
downloadotp-75a79e6547fd66c2194d6f488c30ad888a715f4b.tar.gz
otp-75a79e6547fd66c2194d6f488c30ad888a715f4b.tar.bz2
otp-75a79e6547fd66c2194d6f488c30ad888a715f4b.zip
add system_info(ets_limit)
Add system_info(ets_limit) to provide a way to retrieve the runtime's maximum number of ETS tables. Add tests and documentation for it too. Also repair the alphabetical order of system_info/1 argument descriptions in the documentation and in the erlang.erl clauses. Add new preloaded erlang.erl due to that change. Also ensure all system_info/1 clauses are represented in the erlang.xml source documentation -- a couple had been inadvertently dropped in previous commits when other clauses were added.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rwxr-xr-xerts/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 673dfc658c..3b25efd9af 100755
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -2636,6 +2636,9 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1)
BIF_RET(res);
}
+ else if (ERTS_IS_ATOM_STR("ets_limit",BIF_ARG_1)) {
+ BIF_RET(make_small(erts_db_get_max_tabs()));
+ }
BIF_ERROR(BIF_P, BADARG);
}