aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-02 20:04:47 +0200
committerSverker Eriksson <[email protected]>2016-09-19 15:50:15 +0200
commitfdc2f2b4a6f6314ae7c183dc4e39e19d05ac89e4 (patch)
tree623690761c72151fc0ce8977b573880dbd614bb2 /erts/emulator/beam/erl_bif_info.c
parent25eb3fe353cb0f5c381107e43a865d3a312c8c25 (diff)
downloadotp-fdc2f2b4a6f6314ae7c183dc4e39e19d05ac89e4.tar.gz
otp-fdc2f2b4a6f6314ae7c183dc4e39e19d05ac89e4.tar.bz2
otp-fdc2f2b4a6f6314ae7c183dc4e39e19d05ac89e4.zip
erts: Fix ets_SUITE:memory
by simply asking for the size of struct ext_segtab
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index abf20a90e4..13391b7c67 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -3545,7 +3545,9 @@ BIF_RETTYPE erts_debug_get_internal_state_1(BIF_ALIST_1)
else if (ERTS_IS_ATOM_STR("DbTable_words", BIF_ARG_1)) {
/* Used by ets_SUITE (stdlib) */
size_t words = (sizeof(DbTable) + sizeof(Uint) - 1)/sizeof(Uint);
- BIF_RET(make_small((Uint) words));
+ Eterm* hp = HAlloc(BIF_P ,3);
+ BIF_RET(TUPLE2(hp, make_small((Uint) words),
+ erts_ets_hash_sizeof_ext_segtab()));
}
else if (ERTS_IS_ATOM_STR("DbTable_meta", BIF_ARG_1)) {
/* Used by ets_SUITE (stdlib) */