aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_bif_load.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-27 14:15:43 +0200
committerSverker Eriksson <[email protected]>2016-10-27 14:15:43 +0200
commitce0785da10fb5d82ed3b6e93ff82e112f38e75fa (patch)
tree33b521c8eb78b5086e21dc003f59e288cf78eb97 /erts/emulator/beam/beam_bif_load.c
parent9be10412e1837aac339a284f2b01cfc112778180 (diff)
parent6408400fc1ca9609169f6a0450f1c4671aced91c (diff)
downloadotp-ce0785da10fb5d82ed3b6e93ff82e112f38e75fa.tar.gz
otp-ce0785da10fb5d82ed3b6e93ff82e112f38e75fa.tar.bz2
otp-ce0785da10fb5d82ed3b6e93ff82e112f38e75fa.zip
Merge branch 'sverker/purge-fix/OTP-13925' into maint
Diffstat (limited to 'erts/emulator/beam/beam_bif_load.c')
-rw-r--r--erts/emulator/beam/beam_bif_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/beam_bif_load.c b/erts/emulator/beam/beam_bif_load.c
index 5969197168..8af7703f51 100644
--- a/erts/emulator/beam/beam_bif_load.c
+++ b/erts/emulator/beam/beam_bif_load.c
@@ -1623,10 +1623,10 @@ erts_purge_state_add_fun(ErlFunEntry *fe)
}
Export *
-erts_suspend_process_on_pending_purge_lambda(Process *c_p)
+erts_suspend_process_on_pending_purge_lambda(Process *c_p, ErlFunEntry* fe)
{
erts_smp_mtx_lock(&purge_state.mtx);
- if (is_value(purge_state.module)) {
+ if (purge_state.module == fe->module) {
/*
* The process c_p is about to call a fun in the code
* that we are trying to purge. Suspend it and call