aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_tree.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-18 17:07:35 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:22:57 +0100
commit272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b (patch)
tree7aa337eccd647b91e8a91bc1dce8c1be29df3631 /erts/emulator/beam/erl_db_tree.c
parent166032bddf9a14f3ea6252724532039a1113612d (diff)
downloadotp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.tar.gz
otp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.tar.bz2
otp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.zip
erts: Refactor new helper function erts_init_trap_export
Diffstat (limited to 'erts/emulator/beam/erl_db_tree.c')
-rw-r--r--erts/emulator/beam/erl_db_tree.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/erts/emulator/beam/erl_db_tree.c b/erts/emulator/beam/erl_db_tree.c
index 312050b931..faa7f31d99 100644
--- a/erts/emulator/beam/erl_db_tree.c
+++ b/erts/emulator/beam/erl_db_tree.c
@@ -452,16 +452,8 @@ DbTableMethod db_tree =
void db_initialize_tree(void)
{
- memset(&ets_select_reverse_exp, 0, sizeof(Export));
- ets_select_reverse_exp.address =
- &ets_select_reverse_exp.code[3];
- ets_select_reverse_exp.code[0] = am_ets;
- ets_select_reverse_exp.code[1] = am_reverse;
- ets_select_reverse_exp.code[2] = 3;
- ets_select_reverse_exp.code[3] =
- (BeamInstr) em_apply_bif;
- ets_select_reverse_exp.code[4] =
- (BeamInstr) &ets_select_reverse;
+ erts_init_trap_export(&ets_select_reverse_exp, am_ets, am_reverse, 3,
+ &ets_select_reverse);
return;
};