aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-10-28 18:34:14 +0200
committerRickard Green <[email protected]>2017-01-12 15:22:26 +0100
commit95ec5d385cfba23c770d946871c0197bf374ff3c (patch)
tree4eabd4401d83066c07a77d7dec34600deac64edd /erts/emulator/beam/erl_nif.c
parent5aff60d96efac96a41b514ed167f13eb787a415f (diff)
downloadotp-95ec5d385cfba23c770d946871c0197bf374ff3c.tar.gz
otp-95ec5d385cfba23c770d946871c0197bf374ff3c.tar.bz2
otp-95ec5d385cfba23c770d946871c0197bf374ff3c.zip
Optimize handling of BIF errors
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r--erts/emulator/beam/erl_nif.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index ee4b22f7ca..fd756692f9 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -266,7 +266,6 @@ static ERTS_INLINE ERL_NIF_TERM
schedule(ErlNifEnv* env, NativeFunPtr direct_fp, NativeFunPtr indirect_fp,
Eterm mod, Eterm func_name, int argc, const ERL_NIF_TERM argv[])
{
- Export *exp;
NifExport *ep;
Process *c_p, *dirty_shadow_proc;
@@ -278,11 +277,8 @@ schedule(ErlNifEnv* env, NativeFunPtr direct_fp, NativeFunPtr indirect_fp,
ERTS_SMP_LC_ASSERT(ERTS_PROC_LOCK_MAIN & erts_proc_lc_my_proc_locks(c_p));
- exp = ErtsContainerStruct(c_p->current, Export, info.mfa);
-
ep = erts_nif_export_schedule(c_p, dirty_shadow_proc,
c_p->current,
- (BifFunction) exp->beam[1],
c_p->cp,
(BeamInstr) em_call_nif,
direct_fp, indirect_fp,