aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-01-19 11:00:01 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:22:59 +0100
commitf81dd5da827e86af3bf6fedadeaaeb5fb3347c32 (patch)
treef05a3281b1eefcc68f1b0bd9513924b65360b6a2 /erts/emulator/beam/beam_load.c
parentdab78e34dac11579cda578ffc6cf9293394456e4 (diff)
downloadotp-f81dd5da827e86af3bf6fedadeaaeb5fb3347c32.tar.gz
otp-f81dd5da827e86af3bf6fedadeaaeb5fb3347c32.tar.bz2
otp-f81dd5da827e86af3bf6fedadeaaeb5fb3347c32.zip
beam_ranges: Make ranges safe with multi-scheduling active
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 873b94d175..6cabc6f558 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -5987,9 +5987,7 @@ void erts_start_loader_code_ix(void)
beam_catches_start_load();
export_start_load();
module_start_load();
- /*SVERK and more to come I guess...
- :
- */
+ erts_start_load_ranges();
CIX_TRACE("start");
}
@@ -5999,6 +5997,7 @@ void erts_commit_loader_code_ix(void)
beam_catches_end_load(1);
export_end_load(1);
module_end_load(1);
+ erts_end_load_ranges(1);
{
ErtsCodeIndex ix;
ix = erts_loader_code_ix();
@@ -6014,6 +6013,7 @@ void erts_abort_loader_code_ix(void)
beam_catches_end_load(0);
export_end_load(0);
module_end_load(0);
+ erts_end_load_ranges(0);
CIX_TRACE("abort");
}