From 9dbd1dbf260c41878704728adc533ace1a27c1ff Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 1 Feb 2012 19:39:31 +0100 Subject: erts: Fix hipe loading bug for new non-blocking load --- erts/emulator/hipe/hipe_bif0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/emulator/hipe/hipe_bif0.c') diff --git a/erts/emulator/hipe/hipe_bif0.c b/erts/emulator/hipe/hipe_bif0.c index ad1552e7eb..6340c39e69 100644 --- a/erts/emulator/hipe/hipe_bif0.c +++ b/erts/emulator/hipe/hipe_bif0.c @@ -648,7 +648,7 @@ static void *hipe_get_emu_address(Eterm m, Eterm f, unsigned int arity, int is_r /* if not found, stub it via the export entry */ /* no lock needed around erts_export_get_or_make_stub() */ Export *export_entry = erts_export_get_or_make_stub(m, f, arity); - address = export_entry->addressv[erts_staging_code_ix()]; + address = export_entry->addressv[erts_active_code_ix()]; } return address; } -- cgit v1.2.3