aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/module.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-19 21:16:29 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:00 +0100
commitdd3036c1a152c66a33b4d298cbbf428c075153b7 (patch)
tree8c0702574106166c2cbf1bcb2a9ac09bec612837 /erts/emulator/beam/module.c
parentf81dd5da827e86af3bf6fedadeaaeb5fb3347c32 (diff)
downloadotp-dd3036c1a152c66a33b4d298cbbf428c075153b7.tar.gz
otp-dd3036c1a152c66a33b4d298cbbf428c075153b7.tar.bz2
otp-dd3036c1a152c66a33b4d298cbbf428c075153b7.zip
First try at non-blocking code loading!
Implemented some code_ix locks and commented calls to erts_smp_thr_progress_block()
Diffstat (limited to 'erts/emulator/beam/module.c')
-rw-r--r--erts/emulator/beam/module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/module.c b/erts/emulator/beam/module.c
index 1c629cd614..ab4f387982 100644
--- a/erts/emulator/beam/module.c
+++ b/erts/emulator/beam/module.c
@@ -127,6 +127,7 @@ erts_put_module(Eterm mod)
ASSERT(is_atom(mod));
ERTS_SMP_LC_ASSERT(erts_initialized == 0
+ || erts_is_code_ix_locked()
|| erts_smp_thr_progress_is_blocking());
mod_tab = &module_tables[erts_loader_code_ix()];