aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-07-18 12:21:42 +0200
committerGitHub <[email protected]>2018-07-18 12:21:42 +0200
commit64d7d7ab81e3c2163301a77969c75c6b73804d8b (patch)
tree88edc95a533a22ae5bf19a707c50817aa26de39c /erts/emulator/beam/erl_init.c
parent0e9c319480d9cfb778b654bf2cd71e7bd31464f9 (diff)
parentf31db22102bde44c6ee17bc756bdeb109855acea (diff)
downloadotp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.gz
otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.bz2
otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.zip
Merge pull request #1812 from michalmuskala/mm/make-fun-loader
Optimise creation of anonymous functions
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 57c6c10c7f..5da7b43b9e 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -128,7 +128,7 @@ const Eterm etp_hole_marker = 0;
static int modified_sched_thread_suggested_stack_size = 0;
-Eterm erts_init_process_id;
+Eterm erts_init_process_id = ERTS_INVALID_PID;
/*
* Note about VxWorks: All variables must be initialized by executable code,
@@ -2258,6 +2258,7 @@ erl_start(int argc, char **argv)
erts_init_process_id = erl_first_process_otp("otp_ring0", NULL, 0,
boot_argc, boot_argv);
+ ASSERT(erts_init_process_id != ERTS_INVALID_PID);
{
/*