diff options
author | Sverker Eriksson <[email protected]> | 2016-09-02 20:04:47 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-09-19 15:50:15 +0200 |
commit | fdc2f2b4a6f6314ae7c183dc4e39e19d05ac89e4 (patch) | |
tree | 623690761c72151fc0ce8977b573880dbd614bb2 /erts/emulator/beam/erl_db_hash.c | |
parent | 25eb3fe353cb0f5c381107e43a865d3a312c8c25 (diff) | |
download | otp-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_db_hash.c')
-rw-r--r-- | erts/emulator/beam/erl_db_hash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c index 581b135233..3f7e14d15d 100644 --- a/erts/emulator/beam/erl_db_hash.c +++ b/erts/emulator/beam/erl_db_hash.c @@ -2978,6 +2978,11 @@ void db_calc_stats_hash(DbTableHash* tb, DbHashStats* stats) } /* For testing only */ +Eterm erts_ets_hash_sizeof_ext_segtab(void) +{ + return make_small(((SIZEOF_EXT_SEGTAB(0)-1) / sizeof(UWord)) + 1); +} +/* For testing only */ Eterm erts_ets_hash_get_memstate(Process* p, DbTableHash* tb) { Eterm seg_cnt; |