aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/erl_init.erl
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-05-24 14:31:40 +0200
committerRichard Carlsson <[email protected]>2018-05-24 14:31:40 +0200
commit218646bd9c446cd6b2f1ebfd7d75ec682d8168f1 (patch)
treef77a785de36246fc6a181604e048b9135f4db06b /erts/preloaded/src/erl_init.erl
parentf18549cf0ab10e553da0f4f839c72370a304c10f (diff)
downloadotp-218646bd9c446cd6b2f1ebfd7d75ec682d8168f1.tar.gz
otp-218646bd9c446cd6b2f1ebfd7d75ec682d8168f1.tar.bz2
otp-218646bd9c446cd6b2f1ebfd7d75ec682d8168f1.zip
Move calling on_load for preloaded modules to erl_init
Diffstat (limited to 'erts/preloaded/src/erl_init.erl')
-rw-r--r--erts/preloaded/src/erl_init.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/preloaded/src/erl_init.erl b/erts/preloaded/src/erl_init.erl
index f43e060438..d681f05398 100644
--- a/erts/preloaded/src/erl_init.erl
+++ b/erts/preloaded/src/erl_init.erl
@@ -30,6 +30,12 @@
Mod :: module(),
BootArgs :: [binary()].
start(Mod, BootArgs) ->
+ %% Load the static nifs
+ zlib:on_load(),
+ erl_tracer:on_load(),
+ prim_buffer:on_load(),
+ prim_file:on_load(),
+ %% Proceed to the specified boot module
run(Mod, boot, BootArgs).
run(M, F, A) ->