diff options
-rw-r--r-- | erts/emulator/beam/code_ix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/code_ix.c b/erts/emulator/beam/code_ix.c index 9158d2d05c..ae4cca1e58 100644 --- a/erts/emulator/beam/code_ix.c +++ b/erts/emulator/beam/code_ix.c @@ -104,8 +104,9 @@ void erts_abort_staging_code_ix(void) int erts_try_seize_code_write_permission(Process* c_p) { int success; - +#ifdef ERTS_SMP ASSERT(!erts_smp_thr_progress_is_blocking()); /* to avoid deadlock */ +#endif erts_smp_mtx_lock(&the_code_ix_queue_lock); success = !the_code_ix_lock; |