aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_bif_load.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-24 15:42:02 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:04 +0100
commita23f25a3014dbad01d2016dc4e6d6df9d59ba64c (patch)
tree52c142a4d78eddcde0fdb526d531239e0638f6f3 /erts/emulator/beam/beam_bif_load.c
parent72cab3a723925d0e369466d7de7567d8482b1318 (diff)
downloadotp-a23f25a3014dbad01d2016dc4e6d6df9d59ba64c.tar.gz
otp-a23f25a3014dbad01d2016dc4e6d6df9d59ba64c.tar.bz2
otp-a23f25a3014dbad01d2016dc4e6d6df9d59ba64c.zip
erts: Rename "loader" code_ix as "staging" code_ix
Staging is a better and more general name as does not necessary need to involve code loading (can be deletion, tracing, etc).
Diffstat (limited to 'erts/emulator/beam/beam_bif_load.c')
-rw-r--r--erts/emulator/beam/beam_bif_load.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/erts/emulator/beam/beam_bif_load.c b/erts/emulator/beam/beam_bif_load.c
index 4a01e62dc8..c14b86f811 100644
--- a/erts/emulator/beam/beam_bif_load.c
+++ b/erts/emulator/beam/beam_bif_load.c
@@ -89,20 +89,20 @@ load_module_2(BIF_ALIST_2)
ensure_no_breakpoints(BIF_P, 0, BIF_ARG_1);
erts_lock_code_ix();
- erts_start_loader_code_ix();
+ erts_start_staging_code_ix();
reason = erts_finish_loading(stp, BIF_P, 0, &BIF_ARG_1);
if (reason != NIL) {
if (reason == am_on_load) {
- erts_commit_loader_code_ix();
+ erts_commit_staging_code_ix();
}
else {
- erts_abort_loader_code_ix();
+ erts_abort_staging_code_ix();
}
res = TUPLE2(hp, am_error, reason);
} else {
- set_default_trace_pattern(BIF_ARG_1, erts_loader_code_ix());
- erts_commit_loader_code_ix();
+ set_default_trace_pattern(BIF_ARG_1, erts_staging_code_ix());
+ erts_commit_staging_code_ix();
res = TUPLE2(hp, am_module, BIF_ARG_1);
}
@@ -174,15 +174,15 @@ BIF_RETTYPE code_make_stub_module_3(BIF_ALIST_3)
ensure_no_breakpoints(BIF_P, 0, BIF_ARG_1);
erts_lock_code_ix();
- erts_start_loader_code_ix();
+ erts_start_staging_code_ix();
res = erts_make_stub_module(BIF_P, BIF_ARG_1, BIF_ARG_2, BIF_ARG_3);
if (res == BIF_ARG_1) {
- erts_commit_loader_code_ix();
+ erts_commit_staging_code_ix();
}
else {
- erts_abort_loader_code_ix();
+ erts_abort_staging_code_ix();
}
erts_unlock_code_ix();
@@ -294,8 +294,8 @@ BIF_RETTYPE delete_module_1(BIF_ALIST_1)
ensure_no_breakpoints(BIF_P, 0, BIF_ARG_1);
erts_lock_code_ix();
- erts_start_loader_code_ix();
- code_ix = erts_loader_code_ix();
+ erts_start_staging_code_ix();
+ code_ix = erts_staging_code_ix();
{
Module *modp = erts_get_module(BIF_ARG_1, code_ix);
if (!modp) {
@@ -316,10 +316,10 @@ BIF_RETTYPE delete_module_1(BIF_ALIST_1)
}
if (res == am_true) {
- erts_commit_loader_code_ix();
+ erts_commit_staging_code_ix();
}
else {
- erts_abort_loader_code_ix();
+ erts_abort_staging_code_ix();
}
erts_unlock_code_ix();
@@ -869,7 +869,7 @@ delete_code(Process *c_p, ErtsProcLocks c_p_locks, Module* modp)
static void
delete_export_references(Eterm module)
{
- ErtsCodeIndex code_ix = erts_loader_code_ix();
+ ErtsCodeIndex code_ix = erts_staging_code_ix();
int i;
ASSERT(is_atom(module));