aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/module.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-02-03 18:13:37 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:06 +0100
commit5aed8caaaf6c6b17ca2b2bd920ba76b31d6f5675 (patch)
tree7555cc2310ae8121729acc0c4544066661e8c8a3 /erts/emulator/beam/module.c
parent63265772e86ca2e0f14a236c8aa964697a7cda70 (diff)
downloadotp-5aed8caaaf6c6b17ca2b2bd920ba76b31d6f5675.tar.gz
otp-5aed8caaaf6c6b17ca2b2bd920ba76b31d6f5675.tar.bz2
otp-5aed8caaaf6c6b17ca2b2bd920ba76b31d6f5675.zip
erts: Refactor more renaming as "staging"
Diffstat (limited to 'erts/emulator/beam/module.c')
-rw-r--r--erts/emulator/beam/module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/module.c b/erts/emulator/beam/module.c
index d3fd3f118d..6d5f1528b4 100644
--- a/erts/emulator/beam/module.c
+++ b/erts/emulator/beam/module.c
@@ -163,7 +163,7 @@ int module_table_sz(void)
static ErtsCodeIndex dbg_load_code_ix = 0;
#endif
-static int entries_at_start_load = 0;
+static int entries_at_start_staging = 0;
void module_start_staging(void)
{
@@ -199,8 +199,8 @@ void module_start_staging(void)
dst_mod->curr = src_mod->curr;
dst_mod->old = src_mod->old;
}
- entries_at_start_load = dst->entries;
+ entries_at_start_staging = dst->entries;
IF_DEBUG(dbg_load_code_ix = erts_staging_code_ix());
}
@@ -211,8 +211,8 @@ void module_end_staging(int commit)
if (!commit) { /* abort */
IndexTable* tab = &module_tables[erts_staging_code_ix()];
- ASSERT(entries_at_start_load <= tab->entries);
- index_erase_latest_from(tab, entries_at_start_load);
+ ASSERT(entries_at_start_staging <= tab->entries);
+ index_erase_latest_from(tab, entries_at_start_staging);
}
IF_DEBUG(dbg_load_code_ix = -1);