diff options
Diffstat (limited to 'erts/emulator/beam/export.c')
-rw-r--r-- | erts/emulator/beam/export.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/erts/emulator/beam/export.c b/erts/emulator/beam/export.c index fdaf1a15a5..af5df9ece7 100644 --- a/erts/emulator/beam/export.c +++ b/erts/emulator/beam/export.c @@ -293,7 +293,7 @@ erts_export_put(Eterm mod, Eterm func, unsigned int arity) res = ee->ep; #ifdef BEAMASM - res->dispatch.addresses[ERTS_SAVE_CALLS_CODE_IX] = beam_save_calls; + res->dispatch.addresses[ERTS_SAVE_CALLS_CODE_IX] = beam_save_calls_export; #endif return res; @@ -337,7 +337,7 @@ erts_export_get_or_make_stub(Eterm mod, Eterm func, unsigned int arity) #ifdef BEAMASM ep->dispatch.addresses[ERTS_SAVE_CALLS_CODE_IX] = - beam_save_calls; + beam_save_calls_export; #endif ASSERT(ep); @@ -387,7 +387,7 @@ Export *export_get(Export *e) return entry ? entry->ep : NULL; } -IF_DEBUG(static ErtsCodeIndex debug_start_load_ix = 0;) +IF_DEBUG(static ErtsCodeIndex debug_export_load_ix = 0;) void export_start_staging(void) @@ -399,7 +399,7 @@ void export_start_staging(void) int i; ASSERT(dst_ix != src_ix); - ASSERT(debug_start_load_ix == -1); + ASSERT(debug_export_load_ix == ~0); export_staging_lock(); /* @@ -426,12 +426,12 @@ void export_start_staging(void) } export_staging_unlock(); - IF_DEBUG(debug_start_load_ix = dst_ix); + IF_DEBUG(debug_export_load_ix = dst_ix); } void export_end_staging(int commit) { - ASSERT(debug_start_load_ix == erts_staging_code_ix()); - IF_DEBUG(debug_start_load_ix = -1); + ASSERT(debug_export_load_ix == erts_staging_code_ix()); + IF_DEBUG(debug_export_load_ix = ~0); } |