aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.h
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/beam_load.h
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/beam_load.h')
-rw-r--r--erts/emulator/beam/beam_load.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.h b/erts/emulator/beam/beam_load.h
index d420a4346c..659b9c303f 100644
--- a/erts/emulator/beam/beam_load.h
+++ b/erts/emulator/beam/beam_load.h
@@ -111,6 +111,12 @@ typedef struct beam_code_header {
}BeamCodeHeader;
+#ifdef ERTS_DIRTY_SCHEDULERS
+# define BEAM_NIF_MIN_FUNC_SZ 4
+#else
+# define BEAM_NIF_MIN_FUNC_SZ 3
+#endif
+
void erts_release_literal_area(struct ErtsLiteralArea_* literal_area);
int erts_is_module_native(BeamCodeHeader* code);
void erts_beam_bif_load_init(void);