aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-23 16:48:28 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:02 +0100
commita4cb5739b9f3dd88582fdea7a00cbba721fea35d (patch)
tree01fc8ff0b64a0c7add2978236a753f75969d0825 /erts/emulator/beam/beam_load.c
parent48e662a63e80c4f358be1ba062615ff56e09f331 (diff)
downloadotp-a4cb5739b9f3dd88582fdea7a00cbba721fea35d.tar.gz
otp-a4cb5739b9f3dd88582fdea7a00cbba721fea35d.tar.bz2
otp-a4cb5739b9f3dd88582fdea7a00cbba721fea35d.zip
erts: Remove secondary_export_table
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 54dc663abe..cc4bdea20e 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -6018,10 +6018,12 @@ void erts_commit_loader_code_ix(void)
erts_end_load_ranges(1);
{
ErtsCodeIndex ix;
+ export_write_lock();
ix = erts_loader_code_ix();
erts_smp_atomic32_set_nob(&the_active_code_index, ix);
ix = (ix + 1) % ERTS_NUM_CODE_IX;
erts_smp_atomic32_set_nob(&the_loader_code_index, ix);
+ export_write_unlock();
}
CIX_TRACE("commit");
}