aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-20 17:42:50 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:00 +0100
commit28a1a227f8097c5c593149f66a98a1b1cf796e99 (patch)
treec9afd7f630e23b80c34e89a831b7e8a459387265 /erts/emulator/beam/beam_load.c
parent0ebc1871238508783733423825d22967f5096d19 (diff)
downloadotp-28a1a227f8097c5c593149f66a98a1b1cf796e99.tar.gz
otp-28a1a227f8097c5c593149f66a98a1b1cf796e99.tar.bz2
otp-28a1a227f8097c5c593149f66a98a1b1cf796e99.zip
erts: Rename erts_load_module to erts_preload_module
As it can only be used at initialization for preloading
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index e2a3914bf7..54dc663abe 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -558,7 +558,7 @@ define_file(LoaderState* stp, char* name, int idx)
}
Eterm
-erts_load_module(Process *c_p,
+erts_preload_module(Process *c_p,
ErtsProcLocks c_p_locks,
Eterm group_leader, /* Group leader or NIL if none. */
Eterm* modp, /*
@@ -571,6 +571,7 @@ erts_load_module(Process *c_p,
LoaderState* stp = erts_alloc_loader_state();
Eterm retval;
+ ASSERT(!erts_initialized);
retval = erts_prepare_loading(stp, c_p, group_leader, modp,
code, size);
if (retval != NIL) {