diff options
author | Björn Gustavsson <[email protected]> | 2017-09-01 15:05:20 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-09-04 15:46:44 +0200 |
commit | 3b1703009a4c484c02809fadf14163a121d09198 (patch) | |
tree | 6a6c89ed525a0156f6fa4919613493df96dbcdc0 /erts/emulator/beam | |
parent | 86298264166f9d1b5e2e4c13bcd4db7c9d8d0ca1 (diff) | |
download | otp-3b1703009a4c484c02809fadf14163a121d09198.tar.gz otp-3b1703009a4c484c02809fadf14163a121d09198.tar.bz2 otp-3b1703009a4c484c02809fadf14163a121d09198.zip |
beam_emu.c: Mark initialization code as unlikely
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/beam_emu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c index 7ef0772703..3dce16aedd 100644 --- a/erts/emulator/beam/beam_emu.c +++ b/erts/emulator/beam/beam_emu.c @@ -649,7 +649,7 @@ void process_main(Eterm * x_reg_array, FloatDef* f_reg_array) * Note: c_p->arity must be set to reflect the number of useful terms in * c_p->arg_reg before calling the scheduler. */ - if (!init_done) { + if (ERTS_UNLIKELY(!init_done)) { /* This should only be reached during the init phase when only the main * process is running. I.e. there is no race for init_done. */ |