diff options
author | Sverker Eriksson <[email protected]> | 2018-05-07 18:18:17 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-05-08 14:38:43 +0200 |
commit | e7579f608a1bdb52271c57e9ad69a7752ea1371b (patch) | |
tree | 564e993798e57172de8c959d762b32616200638f /erts/emulator/beam/erl_db_hash.c | |
parent | c500b0acdad588fa4c3d0cba15a9c61dc30a3190 (diff) | |
download | otp-e7579f608a1bdb52271c57e9ad69a7752ea1371b.tar.gz otp-e7579f608a1bdb52271c57e9ad69a7752ea1371b.tar.bz2 otp-e7579f608a1bdb52271c57e9ad69a7752ea1371b.zip |
erts: Rename untrapping db_free_*empty*_table
as it's now only used for empty tables by ets:new/2.
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.c')
-rw-r--r-- | erts/emulator/beam/erl_db_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c index 6bb5034971..74d63325e6 100644 --- a/erts/emulator/beam/erl_db_hash.c +++ b/erts/emulator/beam/erl_db_hash.c @@ -418,7 +418,7 @@ static void db_print_hash(fmtfn_t to, void *to_arg, int show, DbTable *tbl); -static int db_free_table_hash(DbTable *tbl); +static int db_free_empty_table_hash(DbTable *tbl); static SWord db_free_table_continue_hash(DbTable *tbl, SWord reds); @@ -531,7 +531,7 @@ DbTableMethod db_hash = db_select_replace_continue_hash, db_take_hash, db_delete_all_objects_hash, - db_free_table_hash, + db_free_empty_table_hash, db_free_table_continue_hash, db_print_hash, db_foreach_offheap_hash, @@ -2426,9 +2426,9 @@ static void db_print_hash(fmtfn_t to, void *to_arg, int show, DbTable *tbl) } } -/* release all memory occupied by a single table */ -static int db_free_table_hash(DbTable *tbl) +static int db_free_empty_table_hash(DbTable *tbl) { + ASSERT(NITEMS(tbl) == 0); while (db_free_table_continue_hash(tbl, ERTS_SWORD_MAX) < 0) ; return 0; |