aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-11-29 20:54:14 +0100
committerSverker Eriksson <[email protected]>2016-11-29 20:55:48 +0100
commit6c76bfa96c12b9f29e66baf3a2df7e84bb9b05ef (patch)
tree15005c65554da7654452a9ce3b8e0134f9319a64 /erts/emulator/beam/erl_nif.c
parentf7a3650b6827242772f957d624dbb91b5e472744 (diff)
downloadotp-6c76bfa96c12b9f29e66baf3a2df7e84bb9b05ef.tar.gz
otp-6c76bfa96c12b9f29e66baf3a2df7e84bb9b05ef.tar.bz2
otp-6c76bfa96c12b9f29e66baf3a2df7e84bb9b05ef.zip
erts: Refactor BEAM_NIF_MIN_FUNC_SZ
to be declared once in beam_load.h and get rid of #ifdef kludge.
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r--erts/emulator/beam/erl_nif.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index 202f713f67..5499512dd1 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -3341,11 +3341,8 @@ BIF_RETTYPE load_nif_2(BIF_ALIST_2)
mod_atom, f->name, f->arity);
#endif
}
-#ifdef ERTS_DIRTY_SCHEDULERS
- else if (erts_codeinfo_to_code(ci_pp[1]) - erts_codeinfo_to_code(ci_pp[0]) < (4))
-#else
- else if (erts_codeinfo_to_code(ci_pp[1]) - erts_codeinfo_to_code(ci_pp[0]) < (3))
-#endif
+ else if (erts_codeinfo_to_code(ci_pp[1]) - erts_codeinfo_to_code(ci_pp[0])
+ < BEAM_NIF_MIN_FUNC_SZ)
{
ret = load_nif_error(BIF_P,bad_lib,"No explicit call to load_nif"
" in module (%T:%s/%u too small)",