From fa5213fd7590c6a9ade13af1375c363b958927f1 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 7 Feb 2012 19:43:31 +0100 Subject: erts: Cleanup non-blocking load --- erts/emulator/beam/export.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'erts/emulator/beam/export.c') diff --git a/erts/emulator/beam/export.c b/erts/emulator/beam/export.c index 9656a67a4a..78a0b7d269 100644 --- a/erts/emulator/beam/export.c +++ b/erts/emulator/beam/export.c @@ -206,16 +206,11 @@ init_export_table(void) * called through such an export entry. * 3) This function is suitable for the implementation of erlang:apply/3. */ +extern Export* /* inline-helper */ +erts_find_export_entry(Eterm m, Eterm f, unsigned int a,ErtsCodeIndex code_ix); Export* -erts_active_export_entry(Eterm m, Eterm f, unsigned int a) -{ - return erts_find_export_entry(m, f, a, erts_active_code_ix()); -} - -Export* -erts_find_export_entry(Eterm m, Eterm f, unsigned int a, - ErtsCodeIndex code_ix) +erts_find_export_entry(Eterm m, Eterm f, unsigned int a, ErtsCodeIndex code_ix) { HashValue hval = EXPORT_HASH((BeamInstr) m, (BeamInstr) f, (BeamInstr) a); int ix; @@ -401,7 +396,6 @@ void export_start_staging(void) /* * Insert all entries in src into dst table */ - /*SVERK Room for optimization to only insert the new ones */ for (i = 0; i < src->entries; i++) { src_entry = (struct export_entry*) erts_index_lookup(src, i); src_entry->ep->addressv[dst_ix] = src_entry->ep->addressv[src_ix]; -- cgit v1.2.3