diff options
author | Lukas Larsson <[email protected]> | 2015-07-14 15:20:16 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2015-12-15 10:05:43 +0100 |
commit | 17ecb94437bac6726044d299dde48d02dd2b2e9c (patch) | |
tree | 4465730f25a5a174583849f6e89067343d1d89e2 /erts/emulator/beam/erl_node_tables.c | |
parent | 31b8dd2b4b5259d9ed2178017c3580c42bf62ec6 (diff) | |
download | otp-17ecb94437bac6726044d299dde48d02dd2b2e9c.tar.gz otp-17ecb94437bac6726044d299dde48d02dd2b2e9c.tar.bz2 otp-17ecb94437bac6726044d299dde48d02dd2b2e9c.zip |
erts: Refactor out erts functions from hash
Diffstat (limited to 'erts/emulator/beam/erl_node_tables.c')
-rw-r--r-- | erts/emulator/beam/erl_node_tables.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c index 62a44f7129..e5bd0d58f0 100644 --- a/erts/emulator/beam/erl_node_tables.c +++ b/erts/emulator/beam/erl_node_tables.c @@ -793,10 +793,14 @@ void erts_init_node_tables(int dd_sec) rwmtx_opt.type = ERTS_SMP_RWMTX_TYPE_FREQUENT_READ; rwmtx_opt.lived = ERTS_SMP_RWMTX_LONG_LIVED; - f.hash = (H_FUN) dist_table_hash; - f.cmp = (HCMP_FUN) dist_table_cmp; - f.alloc = (HALLOC_FUN) dist_table_alloc; - f.free = (HFREE_FUN) dist_table_free; + f.hash = (H_FUN) dist_table_hash; + f.cmp = (HCMP_FUN) dist_table_cmp; + f.alloc = (HALLOC_FUN) dist_table_alloc; + f.free = (HFREE_FUN) dist_table_free; + f.meta_alloc = (HMALLOC_FUN) erts_alloc; + f.meta_free = (HMFREE_FUN) erts_free; + f.meta_print = (HMPRINT_FUN) erts_print; + erts_this_dist_entry = erts_alloc(ERTS_ALC_T_DIST_ENTRY, sizeof(DistEntry)); dist_entries = 1; |