diff options
author | Sverker Eriksson <[email protected]> | 2017-04-12 19:50:01 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-04-12 19:50:01 +0200 |
commit | 56c4aee677f305f2ed9ca877a39e9c3c4f266f4b (patch) | |
tree | 7468baa8a5ba2f6e9d7f11103224e8c64d0a4aab /erts/emulator/beam/erl_db.c | |
parent | 486a758ef245effab01d880493a0274de49c1797 (diff) | |
download | otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.tar.gz otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.tar.bz2 otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.zip |
erts: Introduce struct binary_internals
to replace macro ERTS_INTERNAL_BINARY_FIELDS
as header in Binary and friends.
Diffstat (limited to 'erts/emulator/beam/erl_db.c')
-rw-r--r-- | erts/emulator/beam/erl_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_db.c b/erts/emulator/beam/erl_db.c index e5601e7571..98c689f13f 100644 --- a/erts/emulator/beam/erl_db.c +++ b/erts/emulator/beam/erl_db.c @@ -217,7 +217,7 @@ make_btid(DbTable *tb) * and table is refered once by being alive... */ erts_smp_refc_init(&tb->common.refc, 2); - erts_refc_inc(&btid->refc, 1); + erts_refc_inc(&btid->intern.refc, 1); } static ERTS_INLINE DbTable* btid2tab(Binary* btid) @@ -3781,7 +3781,7 @@ static void fix_table_locked(Process* p, DbTable* tb) tb, sizeof(DbFixation)); ERTS_ETS_MISC_MEM_ADD(sizeof(DbFixation)); fix->tabs.btid = tb->common.btid; - erts_refc_inc(&fix->tabs.btid->refc, 2); + erts_refc_inc(&fix->tabs.btid->intern.refc, 2); fix->procs.p = p; fix->counter = 1; fixing_procs_rbt_insert(&tb->common.fixing_procs, fix); @@ -3817,7 +3817,7 @@ static void unfix_table_locked(Process* p, DbTable* tb, #endif fixed_tabs_delete(p, fix); - erts_refc_dec(&fix->tabs.btid->refc, 1); + erts_refc_dec(&fix->tabs.btid->intern.refc, 1); erts_db_free(ERTS_ALC_T_DB_FIXATION, tb, (void *) fix, sizeof(DbFixation)); |