aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_bif0.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-01-17 20:00:49 +0100
committerSverker Eriksson <[email protected]>2018-01-17 20:00:49 +0100
commitd57d91427e1ddb09cbf55cac2014a368fe717b46 (patch)
tree472f228c23ba7bb03f32a91d05c4e6f2e7e50960 /erts/emulator/hipe/hipe_bif0.c
parent19b7ccfe076d88a96b62f3222f38be31bb087df2 (diff)
downloadotp-d57d91427e1ddb09cbf55cac2014a368fe717b46.tar.gz
otp-d57d91427e1ddb09cbf55cac2014a368fe717b46.tar.bz2
otp-d57d91427e1ddb09cbf55cac2014a368fe717b46.zip
Fix slow hipe execution
particularly slow erlc when compiler is hipe compiled. hipe_unified_loader:load did not patch external call sites and instead caused a double hipe mode switch per call. hipe_unified_loader:load is only used for early modules first loaded as beam and by code:atomic_load and friends.
Diffstat (limited to 'erts/emulator/hipe/hipe_bif0.c')
-rw-r--r--erts/emulator/hipe/hipe_bif0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_bif0.c b/erts/emulator/hipe/hipe_bif0.c
index 94bc563fda..d8427a4c36 100644
--- a/erts/emulator/hipe/hipe_bif0.c
+++ b/erts/emulator/hipe/hipe_bif0.c
@@ -1773,7 +1773,8 @@ void hipe_redirect_to_module(Module* modp)
struct hipe_mfa_info *p;
struct hipe_ref_head* refh;
- ERTS_SMP_LC_ASSERT(erts_smp_thr_progress_is_blocking());
+ ERTS_SMP_LC_ASSERT(erts_smp_thr_progress_is_blocking() ||
+ erts_is_multi_scheduling_blocked());
for (p = mod2mfa_get(modp); p; p = p->next_in_mod) {
if (p->new_address) {